Editor option settings also saved in CSV-file

Working on new editor enhancements?
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Editor option settings also saved in CSV-file

Post by uwekel »

Hi,

i have configured my PB IDE to save the editor option settings at the end of the file. Today i edited a CSV-file with PB which works fine, but after saving the changes to file, i noticed that the option settings were also attached to the end of the file. In my case, the data file was partially destroyed. From my point of view it would make sense to save these settings to PB owned files (*.pb) only. What do you think?

Best regards
Uwe
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
User avatar
skywalk
Addict
Addict
Posts: 4218
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Editor option settings also saved in CSV-file

Post by skywalk »

See: Preferences - Editor - Save Settings to: :wink:
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: Editor option settings also saved in CSV-file

Post by uwekel »

Yes, i know. I want the settings to be saved to the end of all *.pb files, but not any other. I think it does not make too much sense to store information like

Code: Select all

; IDE Options = PureBasic 4.61 Beta 1 (Linux - x64)
; EnableThread
; EnableXP
in any other file than a *.pb file ;-)
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Little John
Addict
Addict
Posts: 4789
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Editor option settings also saved in CSV-file

Post by Little John »

The PureBasic IDE is for .pb files, it's not a general purpose text editor.
For CSV files, better use e.g. Notepad++ or another text editor.
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Editor option settings also saved in CSV-file

Post by Tenaja »

I use Notepad++ also, and sometimes Programmers Notepad depending on the feature I need...

But if PB's IDE had a plain text mode (or better, additional languages that are common to PB users), then other editors could be avoided.
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: Editor option settings also saved in CSV-file

Post by uwekel »

I do not use another editor. Recently i loaded an XML file into PB's IDE and was really impressed about the very nice synthax highlighting. It's just bad that the file gets attached these additional option lines when saving, so it is not conform anymore with the XML standard.
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Little John
Addict
Addict
Posts: 4789
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Editor option settings also saved in CSV-file

Post by Little John »

Tenaja wrote:But if PB's IDE had a plain text mode (or better, additional languages that are common to PB users), then other editors could be avoided.
Not generally. Actually, that would apply only to a small number of people.
People who use some advanced features of e.g. Notepad++ can't "avoid" that program and use the PB IDE instead, until those fatures are implemented in the IDE. The same applies to PSPad, UltraEdit, and and, and ... In other words, a plain text mode in the PB IDE would only serve the needs of people who don't have high demands for a text editor. All other people will need an additional good general purpose editor anyway. Actually, even if you want to search correctly for "whole words only" in PureBasic source code, you need an additional editor, since the PB IDE (e.g. versions 4.50, 4.60) is not capable of doing so. :evil:
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Editor option settings also saved in CSV-file

Post by Tenaja »

Little John wrote: Not generally. Actually, that would apply only to a small number of people.
While I am a heavy Notepad++ user, I could avoid it about 60 to 70% of the time if PB's IDE could do plain text (the capitalization ruins a LOT of text), an additional 20-25% if you could view two panes at a time, and a full 95% of the time if you could also add custom language styling. Add selected-word highlight, and I could probably skip npp all together.

On the other hand, I know plain text support could be implemented with very little coding time, and I would greatly appreciate it. However, before they spent a full day implementing new IDE features, I'd much rather they spent that time making the output code more efficient.
Little John
Addict
Addict
Posts: 4789
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Editor option settings also saved in CSV-file

Post by Little John »

Tenaja wrote:While I am a heavy Notepad++ user, I could avoid it about 60 to 70% of the time if PB's IDE could do plain text (the capitalization ruins a LOT of text), an additional 20-25% if you could view two panes at a time, and a full 95% of the time if you could also add custom language styling. Add selected-word highlight, and I could probably skip npp all together.
This is just your personal choice. Other Notepad++ users probably think similarly, but in respect to their most frequently used features of Notepad++. As I wrote, the same applies to PSPad, UltraEdit, and dozens of other editor and their users ... So yes, if all features of all editors were implemented in the PB IDE, all other editors could be "avoided". :)
User avatar
skywalk
Addict
Addict
Posts: 4218
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Editor option settings also saved in CSV-file

Post by skywalk »

NotePad++ and the PB IDE use the Scintilla library. But many of the features of NotePad++ are extended by a plug-in system. If PB IDE enables some sort of automation or plug-in system..., then I would implement the features I need in the IDE.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Little John
Addict
Addict
Posts: 4789
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Editor option settings also saved in CSV-file

Post by Little John »

skywalk wrote:If PB IDE enables some sort of automation or plug-in system...,
AFAIR freak had announced something like that, but did not yet have enough time to implement it.
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: Editor option settings also saved in CSV-file

Post by MachineCode »

Tenaja wrote:if PB's IDE could do plain text (the capitalization ruins a LOT of text)
PB's IDE can do plain text without capitalization. It's in the Preferences.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Editor option settings also saved in CSV-file

Post by Tenaja »

MachineCode wrote:
Tenaja wrote:if PB's IDE could do plain text (the capitalization ruins a LOT of text)
PB's IDE can do plain text without capitalization. It's in the Preferences.
Sure, but I am not about to change the preferences every time I switch tabs from a .pb file to a .txt file!
Zach
Addict
Addict
Posts: 1676
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: Editor option settings also saved in CSV-file

Post by Zach »

I think this really is a no brainer.

Irrelevant of the fact that the IDE is not a general purpose editor, it seems to me to be common for people to open up other file types related to a project they are working on, and the IDE should be respecting the data structure of those other file types regardless.
Post Reply