* * *

Author Topic: How do I use the new 1.8 RC3 Structural Highlighting feature?  (Read 1258 times)

carl_caulkett

  • Full Member
  • ***
  • Posts: 243
Hello, I read in the http://wiki.freepascal.org/Lazarus_1.8.0_release_notes that there is a new "New colored outline of source structure." feature. I've been through the options but I cannot see how to enable this. What's the secret?
macOS 10.12.6
Lazarus 1.8.0 RC4
FPC 3.0.2

wp

  • Hero Member
  • *****
  • Posts: 3727
Re: How do I use the new 1.8 RC3 Structural Highlighting feature?
« Reply #1 on: July 07, 2017, 03:44:25 pm »
"Tools" > "Options" > "Editor" > "Matching Keywords": Check "Outline (global)". You can fine-tune below.
« Last Edit: July 07, 2017, 03:53:37 pm by wp »
Lazarus trunk / fpc 3.0.0 / Win32

carl_caulkett

  • Full Member
  • ***
  • Posts: 243
Re: How do I use the new 1.8 RC3 Structural Highlighting feature?
« Reply #2 on: July 07, 2017, 03:59:10 pm »
Cool! Thanks very much. Any way of changing the choice of colors?
macOS 10.12.6
Lazarus 1.8.0 RC4
FPC 3.0.2

carl_caulkett

  • Full Member
  • ***
  • Posts: 243
Re: How do I use the new 1.8 RC3 Structural Highlighting feature?
« Reply #3 on: July 07, 2017, 11:32:53 pm »
OK. I've found a rather hacky way of changing the garish red level 0 line color to a much more soothing Fuchsia. I changed line 179 of SynEditMarkupFoldColoring.pas from Colors[0] := clRed; to Colors[0] := $00FF00FF;. Ideally this line would assign the current Keyword color to Colors[0] to give a more coherent color scheme where the color of the keywords is more uniform. (my Keyword color is Fuchsia, by the way!).
macOS 10.12.6
Lazarus 1.8.0 RC4
FPC 3.0.2

carl_caulkett

  • Full Member
  • ***
  • Posts: 243
macOS 10.12.6
Lazarus 1.8.0 RC4
FPC 3.0.2

Pascal

  • Sr. Member
  • ****
  • Posts: 486
Re: How do I use the new 1.8 RC3 Structural Highlighting feature?
« Reply #5 on: July 08, 2017, 07:31:33 am »
I will implement the color options for this in the near future. So for the time beeing just change the source.
laz trunk - fpc trunk 32bit - Windows 10 Pro x64

carl_caulkett

  • Full Member
  • ***
  • Posts: 243
Re: How do I use the new 1.8 RC3 Structural Highlighting feature?
« Reply #6 on: July 08, 2017, 03:10:33 pm »
Cool! Color choice aside, it's a really good feature  :D
macOS 10.12.6
Lazarus 1.8.0 RC4
FPC 3.0.2

Pascal

  • Sr. Member
  • ****
  • Posts: 486
Re: How do I use the new 1.8 RC3 Structural Highlighting feature?
« Reply #7 on: July 08, 2017, 08:29:33 pm »
Yes, i also like it very much. That's why i developed it further after x2nie did a briliant start.
laz trunk - fpc trunk 32bit - Windows 10 Pro x64

carl_caulkett

  • Full Member
  • ***
  • Posts: 243
Re: How do I use the new 1.8 RC3 Structural Highlighting feature?
« Reply #8 on: July 09, 2017, 12:28:34 am »
I've just spotted why the color red was chosen as the first color. Very appropriate on Pride Day!
macOS 10.12.6
Lazarus 1.8.0 RC4
FPC 3.0.2

JD

  • Hero Member
  • *****
  • Posts: 1592
Re: How do I use the new 1.8 RC3 Structural Highlighting feature?
« Reply #9 on: July 09, 2017, 03:30:48 pm »
Excellent. I always install CNPack in Delphi so I really like this.  :D

JD
Windows (10, 7) - Lazarus 1.8RC4/FPC 3.0.4 (also Delphi occasionally)
Linux Mint Cinnamon  - Lazarus 1.6.4/FPC 3.0.2
Indy 10.6 series; Zeos 7.2.1; SQLite, Firebird, PostgreSQL & MariaDB

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus