Recent

Author Topic: TSynPythonSyn  (Read 2094 times)

Dzandaa

  • Sr. Member
  • ****
  • Posts: 349
  • From C# to Lazarus
TSynPythonSyn
« on: June 13, 2023, 12:02:42 pm »
Hi

Using
 lazarus 2.2.4
 FPC 3.2.2
 on Windows and Linux.

Using TSynEdit plus TSynPythonSyn, is there a way of showing Spaces as empty Spaces and Tab as something visible?

In TSynPythonSyn, I use SpaceAttri with
 FrameColor: clGray
 FrameEdges: sfeBottom
 FrameStyle: slsWaved

but both Spaces and Tabs have the same look.

Thank you.

B->



Regards,
Dzandaa

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10249
  • Debugger - SynEdit - and more
    • wiki
Re: TSynPythonSyn
« Reply #1 on: June 13, 2023, 12:17:02 pm »
Haven't tested it with the Python HL, but there is

Code: Pascal  [Select][+][-]
  1. SynEdit.Options := SynEdit.Options + [eoShowSpecialChars]

And SynEditMarkupSpecialChar, which can be used to control the color.

Dzandaa

  • Sr. Member
  • ****
  • Posts: 349
  • From C# to Lazarus
Re: TSynPythonSyn
« Reply #2 on: June 13, 2023, 06:55:03 pm »
Hi,

Thank you very much.

B->
Regards,
Dzandaa

 

TinyPortal © 2005-2018