Scite does not support json files anymore?

504 views
Skip to first unread message

Mathias Krueger

unread,
Jun 19, 2018, 6:47:16 PM6/19/18
to scite-interest
Hello,

i just startet using Scite for json-files. On the page https://www.scintilla.org/SciTEDoc.html
under Languages understood by SciTE i can find json but not in languages-menu in the editor.

What is wrong?
Can i activate the json-support?
Google could not find something...
I use the actual Windows-Version 4.10.

Many thanks in advance.

Regards
Mathias


Neil Hodgson

unread,
Jun 19, 2018, 7:05:17 PM6/19/18
to scite-interest
Mathias Krueger:

> i just startet using Scite for json-files. On the page https://www.scintilla.org/SciTEDoc.html
> under Languages understood by SciTE i can find json but not in languages-menu in the editor.
>
> What is wrong?
> Can i activate the json-support?

A specific language mode was added for JSON with its own lexer and properties file. Previously it was treated as JavaScript.

To enable json.properties, add a definition in user options for imports.exclude that does not include “json” like

imports.exclude=abaqus asl verilog

The standard imports.exclude can be found in global properties.

Neil

Mathias Krueger

unread,
Jun 20, 2018, 2:54:52 AM6/20/18
to scite-interest
Merci Neil,

i found it and it's working perfect.

Thanks again.

Regards
Mathias

Ben Fisher

unread,
Jun 28, 2018, 4:36:06 PM6/28/18
to scite-interest


On Wednesday, June 20, 2018 at 1:05:17 AM UTC+2, Neil Hodgson wrote:
Mathias Krueger:

> i just startet using Scite for json-files. On the page https://www.scintilla.org/SciTEDoc.html
> under Languages understood by SciTE i can find json but not in languages-menu in the editor.
>
> What is wrong?
> Can i activate the json-support?


I was hit by this a few months ago as well, having to edit global properties to restore json support.

In my opinion, json is too common of a file to be off by default, how would we feel about importing json and rust by default? They are increasingly encountered file types.

If this would make menus too long, perhaps we can remove ada or pascal. Pascal might have minor usage today in delphi et al, but even for this use it is likely edited solely within an ide.

-Ben


 
add_json_rust.patch
add_json_rust_no_ada_pascal.patch

Neil Hodgson

unread,
Jun 30, 2018, 7:23:27 PM6/30/18
to scite-interest
Ben Fisher:

> In my opinion, json is too common of a file to be off by default, how would we feel about importing json and rust by default? They are increasingly encountered file types.

Determining language popularity is difficult. Every time it is tried, there are methodological problems and the published indices have biases and large amounts of noise. I have tried to avoid this area as it can be quite contentious and disruptive with no good way of producing an unbiased prioritization.

That said, I do believe that JSON is sufficiently prominent that it should be included by default. Its often used alongside other programming languages so many will need to occasionally view or edit JSON.

> If this would make menus too long, perhaps we can remove ada or pascal. Pascal might have minor usage today in delphi et al, but even for this use it is likely edited solely within an ide.

Using the TIOBE index, https://www.tiobe.com/tiobe-index/:

0.87% Delphi / Object Pascal
0.63% Ada
0.25% Rust

So Ada has (according to this metric) 2.5 times the popularity of Rust.

Another index is PYPL - http://pypl.github.io/PYPL.html.

If we were to try to use something like this to derive the set of languages included or excluded by default then R, at 1.45% in TIOBE, would be the best language to add to the inclusion list. Swift and Go would also be strong candidates for a place on the Language menu.

If we were to look at trends, it appears to me that the typed-Javascript languages Dart and TypeScript (neither of which has good support in default SciTE) are about to be significant along with Kotlin for JVM users.

Neil

Neil Hodgson

unread,
Jul 2, 2018, 6:55:40 PM7/2/18
to scite-i...@googlegroups.com
Committed the addition of json to the default set of property files.
https://sourceforge.net/p/scintilla/scite/ci/83fc12370bd522c434a7424d987b9142d807f9f0/

Neil

Reply all
Reply to author
Forward
0 new messages