* * *

Author Topic: [SOLVED] SynEdit - What option disables the red block highlighting?  (Read 595 times)

knuckles

  • Jr. Member
  • **
  • Posts: 92
I am trying to use SynEdit in my project and need to disable the red block highlighting as shown from the attached image.

What property is this linked to? Also I believe the attached SynPas highlighter is responsible but I couldn't find exactly what option to disable the block highlighting?

Thanks.
« Last Edit: March 13, 2017, 01:56:23 am by knuckles »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 4323
    • wiki
Re: SynEdit - What option disables the red block highlighting?
« Reply #1 on: March 13, 2017, 12:42:01 am »
This is done by TSynEditMarkupWordGroup

You can either disable it via (repeat for each blocktype)
Code: Pascal  [Select]
  1. Highlighter.foldconfig[ord(cfbtBeginEnd)].Modes := Highlighter.foldconfig[ord(cfbtBeginEnd)].Modes - [fmMarkup];

Or
Code: Pascal  [Select]
  1. SynEdit.MarkupManager.MarkupByClass[TSynEditMarkupWordGroup].enabled := false;
  2.  


knuckles

  • Jr. Member
  • **
  • Posts: 92
Re: SynEdit - What option disables the red block highlighting?
« Reply #2 on: March 13, 2017, 01:56:10 am »
Brilliant thanks Martin_fr  :)

 

Recent

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