Recent

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

carl_caulkett

  • Sr. Member
  • ****
  • Posts: 306
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?
"It builds... ship it!"

Mac Mini M1
macOS 13.6 Ventura
Lazarus 2.2.6 (release version)
FPC 3.2.2 (release version)

wp

  • Hero Member
  • *****
  • Posts: 11858
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 »

carl_caulkett

  • Sr. Member
  • ****
  • Posts: 306
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?
"It builds... ship it!"

Mac Mini M1
macOS 13.6 Ventura
Lazarus 2.2.6 (release version)
FPC 3.2.2 (release version)

carl_caulkett

  • Sr. Member
  • ****
  • Posts: 306
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!).
"It builds... ship it!"

Mac Mini M1
macOS 13.6 Ventura
Lazarus 2.2.6 (release version)
FPC 3.2.2 (release version)

carl_caulkett

  • Sr. Member
  • ****
  • Posts: 306
"It builds... ship it!"

Mac Mini M1
macOS 13.6 Ventura
Lazarus 2.2.6 (release version)
FPC 3.2.2 (release version)

Pascal

  • Hero Member
  • *****
  • Posts: 932
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 x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

carl_caulkett

  • Sr. Member
  • ****
  • Posts: 306
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
"It builds... ship it!"

Mac Mini M1
macOS 13.6 Ventura
Lazarus 2.2.6 (release version)
FPC 3.2.2 (release version)

Pascal

  • Hero Member
  • *****
  • Posts: 932
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 x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

carl_caulkett

  • Sr. Member
  • ****
  • Posts: 306
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!
"It builds... ship it!"

Mac Mini M1
macOS 13.6 Ventura
Lazarus 2.2.6 (release version)
FPC 3.2.2 (release version)

JD

  • Hero Member
  • *****
  • Posts: 1848
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 - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

 

TinyPortal © 2005-2018