Recent

Author Topic: How to enable the colored indentation lines in Lazarus trunk 1.7?  (Read 3878 times)

FlKo

  • Newbie
  • Posts: 4
Hi there.

I'm using the latest 32 bit Windows 10 trunk versions of Lazarus and FPC (1.7 /3.1.1), expecting to have such neat things like the work-in-progress SynEditMarkupFoldColoring.

http://forum.lazarus-ide.org/index.php?topic=30122.285

When looking at the contents of the

...\lazarus\components\synedit\

folder I can find the syneditmarkupfoldcoloring.pas files and stuff but in the IDE itself, there are unfortunately no options allowing me to activate/deactivate those things (looking exactly like in Lazarus 1.6x).

According to some screenshots in the thread mentioned above there should be some kind of settings dialog for this feature at
MainMenu->Options->Editor->Display->Markup and Matches, but this is missing.

Do I have to set some compiler-specific flags before rebuilding the IDE/the SynEdit package?

Thanks in advance.

P.S. I'm frequently updating my local trunk via fpcdeluxe.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9791
  • Debugger - SynEdit - and more
    • wiki
Re: How to enable the colored indentation lines in Lazarus trunk 1.7?
« Reply #1 on: December 27, 2016, 09:45:46 pm »
It is not enabled yet, IIRC there is a define for ide/SourceSynEditor
There also is a patch for ide options, you can find on the bugtracker.

FlKo

  • Newbie
  • Posts: 4
Re: How to enable the colored indentation lines in Lazarus trunk 1.7?
« Reply #2 on: December 28, 2016, 11:12:56 am »
Thanks, I've got it up and running by adding SynWithOutlineMarkup to the IDE Build defines (see attachements), albeit
I've changed the colors in lazarus\components\synedit\syneditmarkupfoldcoloring.pas [166:171] to have a more Delphi-like experience:
Code: Pascal  [Select][+][-]
  1.   Colors[0] := $00FF86FF;
  2.   Colors[1] := $00FE85CD;
  3.   Colors[2] := $00F1A7B0;
  4.   Colors[3] := $00E1CA7B;
  5.   Colors[4] := $00B1E17B;

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: How to enable the colored indentation lines in Lazarus trunk 1.7?
« Reply #3 on: February 20, 2018, 02:37:00 pm »
It works now fine from the IDE (just turn global outline on). I actually use it for verilog (which also has begin-end pairs that can be very deeply nested).

 

TinyPortal © 2005-2018