Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2018-01

IDE needs lexers JSON, XML

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

AlexeyT

IMO it's good to install JSON/XML syntaxes in IDE. many apps have res in such formats. Useful to edit files in IDE.

PS. I found that SynEdit is bad optimized for 4M length lines in XML files. editor shows freezes. ATSynEdit is better optimized for 4M len lines - now

Regards, Alexey

Reply by email

Ondrej Pokorny
to Alexey
Alexey wrote
But I don’t see that IDE supports file filters for xml/json/ini, and seems that these 3 syntaxes not activated for files on editor. Text not colored.

XML and INI are supported directly, JSON is supported by JScript highlighter:

When I open an XML or INI file, the correct highlighters are picked up. Not for JSON, though.

As for file filters - we offer *.* so you can open any file without problems - nothing needs to be done here.

Ondrej

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180112/1f6f8493/attachment-0001.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: hheddkemckihdpjc.png
Type: image/png
Size: 18523 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180112/1f6f8493/attachment-0001.png>

Reply by email

AlexeyT
to Ondrej Pokorny

 Thank you, now i understand.
Yes, xml/ini syntaxes work, only Im confused because ini default hiliting is all black (not nice colors for elements in def config).

When I open an XML or INI file, the correct highlighters are picked up. Not for JSON, though.
Regards, Alexey

Reply by email

Ondrej Pokorny
to AlexeyT
AlexeyT wrote
Thank you, now i understand. Yes, xml/ini syntaxes work, only Im confused because ini default hiliting is all black (not nice colors for elements in def config).

Feel free to improve it. You can also send a patch so that JSON files are recognized to use the JScript parser. I promise I'll look at them :)

Ondrej

Reply by email