Recent

Author Topic: Is there a better JSON highlighter than TSynJScriptSyn  (Read 633 times)

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 507
  • Professional amateur ;-P
Is there a better JSON highlighter than TSynJScriptSyn
« on: March 11, 2021, 06:53:32 pm »
Hey all,

As you can see by the attached image I've added a JSON text view to my laz-JSON-Viewer v0.1.9.34.

I used TSynEdit and then selected TSynJScriptSyn as the syntax highlighter. But it isn't the best one for the job, is it?

Do any of you guys know of a better one?

Many thanks in advance!!

Cheers,
Gus
« Last Edit: March 11, 2021, 07:07:36 pm by gcarreno »
Lazarus 2.1.0(trunk) FPC 3.3.1(trunk) Ubuntu 20.10 64b Dark Theme
Lazarus 2.0.12(stable) FPC 3.2.0(stable) Ubuntu 20.10 64b Dark Theme
http://github.com/gcarreno

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 7087
  • Debugger - SynEdit - and more
    • wiki
Re: Is there a better JSON highlighter than TSynJScriptSyn
« Reply #1 on: March 11, 2021, 07:08:43 pm »
Don't know.

But there is a tutorial how to write one https://wiki.lazarus.freepascal.org/SynEdit_Highlighter

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 507
  • Professional amateur ;-P
Re: Is there a better JSON highlighter than TSynJScriptSyn
« Reply #2 on: March 11, 2021, 07:12:10 pm »
Hi Martin,

But there is a tutorial how to write one https://wiki.lazarus.freepascal.org/SynEdit_Highlighter

Thank you so very much for that.

Indeed, if I can't find anything better than TSynJScriptSyn, I'll have to hatch one out.

Cheers,
Gus
Lazarus 2.1.0(trunk) FPC 3.3.1(trunk) Ubuntu 20.10 64b Dark Theme
Lazarus 2.0.12(stable) FPC 3.2.0(stable) Ubuntu 20.10 64b Dark Theme
http://github.com/gcarreno

 

TinyPortal © 2005-2018