Hi !
Is there a way to specify a hightlighter for the source editor, like vim :
# vim: ts=4 filetype=apache
Actually I have include files (.incl, I know it is not standard) that are not directly recognized as pascal source.

Mailing lists / lazarus / 2008-05
10 messages · 5 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi !
Is there a way to specify a hightlighter for the source editor, like vim :
# vim: ts=4 filetype=apache
Actually I have include files (.incl, I know it is not standard) that are not directly recognized as pascal source.
Right click in the editor -> File settings ... -> Highlighter -> ...
Vincent
Hi ! Is there a way to specify a hightlighter for the source editor, like vim : # vim:…
Damien Gerard wroteIs there a way to specify a hightlighter for the source editor, like vim : # vim: ts=4 filetype=apache
That would be cool! Include in the feature request the 'tabwidth' or 'tabstop' setting as well! If 'tabstop' is not present, it defaults to 2 spaces for indentation - as per the language standard. ;)
One day, I hope to see 'elastic tabstops', but SynEdit doesn't support dynamic tab positions, otherwise I would have implemented it. :-(
Regards,
- Graeme -
_______________________________________________________ fpGUI - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/
Right click in the editor -> File settings ... -> Highlighter -> ... Vincent
Le May 19, 2008 ? 2:16 PM, Vincent Snijders a ?crit :
I know it but I have a lot of files in the project. Consequently I often open/close tabs.
Zitat von Damien Gerard :
Right click in editor -> Editor Options -> Color -> File Extensions.
Mattias
Le May 19, 2008 ? 3:21 PM, Mattias G?rtner a ?crit :
This solution is fine for my needs thanks :)
However, you have to restart Lazarus.
Zitat von Damien Gerard :
Or just close and open the file.
Mattias
Le May 19, 2008 ? 5:07 PM, Mattias G?rtner a ?crit :
Indeed. However, if lazarus is not restarted, not all of my incl files are highlighted (most of them yes but not all - 4/23 files). As you can see on the screenshot :
http://ftn.shikami.org/misc/Lazarus/highlighted.jpg (The editor settings have been modified before opening `pixiestypes_layout.incl`)
Strange and I can not see some major difference.
Please provide a bug report.
Mattias
Le May 19, 2008 ? 8:00 PM, Mattias Gaertner a ?crit :
Before creating a bug report, I will try to find out why exactly.