Data appended to .rc resource uses the wrong comment char

Working on new editor enhancements?
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Data appended to .rc resource uses the wrong comment char

Post by Mistrel »

When I added a .rc file to my project, Tools -> Compiler Options -> Resources, these lines were appended and hidden at the bottom:
; IDE Options = PureBasic v4.02 (Windows - x86)
; CursorPosition = 13
; Folding = -
This information is necessary but the wrong comment chars are used, causing the compiler to error.

If I open this the appended file in notepad and change all of the " ; " chars to " // " everything is fine.
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

Sorry to bump this but I would really like to edit my .rc files within PB instead of notepad.
freak
PureBasic Team
PureBasic Team
Posts: 5941
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

The PureBasic editor is only intended for editing PureBasic sourcecode, not other files.

That said, you can actually disable the writing of the options to the end of every file
in "Preferences->Editor->Save Settings To".
quidquid Latine dictum sit altum videtur
Post Reply