Recent

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

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1119
  • 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 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9864
  • 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: 1119
  • 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 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

 

TinyPortal © 2005-2018