Recent

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

knuckles

  • Full Member
  • ***
  • Posts: 122
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: 9754
  • Debugger - SynEdit - and more
    • 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

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

 

TinyPortal © 2005-2018