Recent

Author Topic: Is it possible to lock highlighter in Lazarus IDE  (Read 2140 times)

vangli

  • New Member
  • *
  • Posts: 44
Is it possible to lock highlighter in Lazarus IDE
« on: September 18, 2018, 09:35:06 am »
Hi

In a project I use some HTML templates which I parse in a Lazarus/Freepascal CGI application. Those templates have the extension ".tmpl", and I find it very convenient to include those templates in the project file. However, every time I open the project I has to re-enable the HTML syntax highlighter found by right clicking in the file and chose "File Settings/Highlighter/HTML". Is it a way to set an option in the project or the IDE in such a way that those files are automatically HTML syntax highlighted?

Ubuntu 16.04/18.04 - Lazarus 1.8.4 - FPC 3.04

Best regards Bent
Regards Bent

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Is it possible to lock highlighter in Lazarus IDE
« Reply #1 on: September 18, 2018, 11:25:21 am »
Open Tools/Options...
Locate Editor/Display/Colors
Change to "HTML document" and add ";thtml" in the editable combobox
Press "OK"

I didn't try it myself but maybe this works.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

vangli

  • New Member
  • *
  • Posts: 44
Re: Is it possible to lock highlighter in Lazarus IDE
« Reply #2 on: September 18, 2018, 12:28:25 pm »
Superb. It works. Probably the only place I haven't looked. Thanks a lot.  :D :D ;D ;D
Regards Bent

 

TinyPortal © 2005-2018