Page 1 of 1

Text files in the IDE

Posted: Tue Dec 08, 2009 1:20 am
by Foz
Double click in the IDE explorer on a text file. Note that it pops up a file viewer form.
Double click in the IDE project explorer on the same text file (assuming that it has been added to a project). Note that it is now an editable file within the IDE.

I'm assuming that it is viewing text files so then it stops idiots from attempting to compile plain text. I'll take my chances with that - is there a way to always get those text files to be editable all the time or should it be a feature request?

Re: Text files in the IDE

Posted: Tue Dec 08, 2009 3:21 am
by Mistrel
freak wrote:The PureBasic editor is only intended for editing PureBasic sourcecode, not other files.
http://www.purebasic.fr/english/viewtop ... 18&t=27804

Re: Text files in the IDE

Posted: Tue Dec 08, 2009 7:02 am
by Kaeru Gaman
that answer was about a problem that the IDE adds editor window prefs to the code like

Code: Select all

; IDE Options = PureBasic v4.02 (Windows - x86)
; CursorPosition = 13
; Folding = -
he also showed how to switch that off.

maybe some "visible" flag for this options would be nice, so they are only updated when existent...?

... I think there is no reason not to edit preferences and other files for your project in the file editor window.

Re: Text files in the IDE

Posted: Tue Dec 08, 2009 10:41 am
by Foz
I already have that switched to separate .cfg files, so that's covered. If the separate window has to be the case, I don't mind it, but I would like it to be editable - perhaps a preference to load a text editor of your choice would be an alternative?