Problem opening Settings.php

Started by Sir Osis of Liver, July 10, 2025, 06:25:19 PM

Previous topic - Next topic

Sir Osis of Liver

Just setting up LibreOffice Writer as default editor in FileZilla, works fine on most files but can't open Settings.php, it opens to blank page.  Same with local or remote files, 2.0 and 2.1.  Opens normally in Gedit text editor.  Any idea what causes this?
When in Emor, do as the Snamors.
                              - D. Lister

Illori

do you know if it will save a txt file without adding anything to it? for this reason we dont suggest using M$ word for editing php files.

Sir Osis of Liver

Just started using it, haven't had any problems so far, but it won't open some php files (Settings.php, proxy.php).  I can use the gedit text editor to edit code, it doesn't have a problem opening those files.  It's a bit clunky (like using notepad in windows), but haven't found anything better.
When in Emor, do as the Snamors.
                              - D. Lister

shawnb61

Using a word processor as a code editor sounds like a recipe for pain, woe, and lament.

Go for it!

(I'd suggest sticking with a code editor...)
A question worth asking is born in experience & driven by necessity. - Fripp

Sir Osis of Liver

Looked at a couple of linux code editors, they're awful.  I've been using the XP version of Wordpad for many years, but it won't run in linux.  Occasionally used Notepad++ when I needed a line count, but there's no linux version. 
When in Emor, do as the Snamors.
                              - D. Lister

Sesquipedalian

Do not use a word processor to try to edit PHP files. It's not meant for that. Even if it can open the file, it will inevitably mess something up sooner or later—probably sooner.

If you like gedit, stick with that. Editing code files is exactly what it is designed for. If you don't particularly like gedit, you can check out some other text editors. I personally use and love Sublime Text, but there are plenty of options out there.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Sir Osis of Liver

I looked at Sublime, it has a very busy ui, and it seems that you have to edit the code files to change anything.  I've been able to increase the small font size, but none of the built in color schemes are usable, would have to do a lot of edits to come up with anything I can see.  If I can't find something better will have another go at it.
When in Emor, do as the Snamors.
                              - D. Lister

Aleksi "Lex" Kilpinen

You shouldn't really use Wordpad either. Word, Wordpad, LibreOffice Writer, OpenOffice, Google Docs and all their friends are not text editors, they are word processors.

I usually use Notepad++ on Windows, and Nano on linux.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Sir Osis of Liver

Been using Wordpad for many years, never had a problem.  It's fine as long as you save files as text.  I'm in linux now, so it's moot.  Installed Nano, it wouldn't run.  Gedit is useable, but can't open multiple instances, it uses tabs, which is annoying, and different color fonts, for no apparent reason.

Trying to learn in couple of weeks what it took me 35 years to learn in Windows. Not going too badly, considering.

When in Emor, do as the Snamors.
                              - D. Lister

CRM 114

#9
Quote from: Sir Osis of Liver on July 11, 2025, 12:54:45 AMGedit is useable, but can't open multiple instances
Have you tried Bluefish (my choice)? It can open multiple instances.

For quick editing, I use mousepad. And sometimes nano.
German Wet Shaving Forum: www.gut-rasiert.de/forum

Illori

how are you trying to run nano? as far as i know it is a cli text editor, not a GUI based text editor.

Sesquipedalian

Quote from: Sir Osis of Liver on July 10, 2025, 09:11:46 PMI looked at Sublime, it has a very busy ui, and it seems that you have to edit the code files to change anything.  I've been able to increase the small font size, but none of the built in color schemes are usable, would have to do a lot of edits to come up with anything I can see.  If I can't find something better will have another go at it.

I've attached my own preferred set of colour schemes. In particular, I use the Tomorrow Night Bright colour scheme from this package. Dark background with bright colours in a scheme that I personally find quite pleasant and easy to read.

Beyond that, I highly recommend that you install and use Package Control. It greatly simplifies the process of finding and using Sublime Text themes, plugins, etc.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

CRM 114

Quote from: Illori on July 11, 2025, 04:52:47 AMhow are you trying to run nano? as far as i know it is a cli text editor, not a GUI based text editor.
Yes, you have to run it in the CLI. Just open a terminal, type nano and enter.
German Wet Shaving Forum: www.gut-rasiert.de/forum

Sir Osis of Liver

Nano installs in app center but doesn't run, throws error on load.  But looks like problem is solved, Bluefish works fine, was able to remove all toolbars and widgets I don't need, just have line numbers, larger font, removed all colors.  It's black on white, just like Wordpad, and easy to see.  Fixed filetype associations in FileZilla, all files load correctly.  Will play with it tonight, but looks like a keeper.  Thanks to all. :)

When in Emor, do as the Snamors.
                              - D. Lister

TwitchisMental

Just so you know, you can run VSC on Linux.

https://code.visualstudio.com/docs/setup/linux

Otherwise if you want a direct replacement to Wordpad, try AbiWord. 

Sir Osis of Liver

Been using the XP version of Wordpad for years to edit code, basically because it's a simple layout that's easy to see, and I have a hotkey macro that changes font face and size to accomodate my poor vision.  All of the code editors I've looked at have a lot of features that are useful to coders, but they're not useful to me and clutter up the layout.  I've been able to clean up Bluefish so it looks just like WP with line numbers.  Should be fine for what I need.
When in Emor, do as the Snamors.
                              - D. Lister

Advertisement: