Notepad3
Notepad3 copied to clipboard
Json file hightlight
{
"lint:js": "eslint",
"abc":"xyz"
}
Json like this in notepad3 highlight show
If there is :
in key of json object ,hight light not work
The JSON lexer is also a JSON-LD lexer
https://github.com/rizonesoft/Notepad3/blob/c67abccf82570ce5a0021c3f2b2be9de6213ea98/lexilla/lexers_x/LexJSON.cxx#L5
A string in the form prefix:suffix matches a compact IRI in JSON-LD
BTW, if the property name contains an extra colon, it won't match the JSON-LD syntax anymore:
Hello @liux-pro ,
Feel free to test the "BETA/RC PortableApps", version "Notepad3Portable_5.22.128.3_beta.paf" or newer, see 1st list in issue #1129.
"Notepad3Portable BETA/RC PortableApps" version can be used with or without ".7z" extension.
Also, feel free to test the "BETA/RC Setup", version "Notepad3_5.22.128.3_beta_Setup" or newer, see the 2nd list in issue #1129.
Comments and suggestions are welcome... 😃
The real fix was made in https://github.com/rizonesoft/Notepad3/commit/76cbde59beaba3cd26ea3110f8546ac81b49aa03.
The last beta release doesn't have a dedicated style for npm scripts that match with SCE_JSON_COMPACTIRI
:
Notepad3 (x64) v5.22.128.3 beta (dkt1-amr)
Compiler: MS Visual C++ 2022 v17.0.5 (VC v1930)
OS Version: Windows 11 Version 21H2 (Build 22000)
Windows Colors 'Dark-Mode' Theme is SUPPORTED and SELECTED.
Scintilla v515
Lexilla v514
Oniguruma v7.0.0
- Process is not elevated
- User is not in Admin-Group
- Locale -> en-US (CP:'ANSI (CP-65001)')
- Current Encoding -> 'Unicode (UTF-8)'
- Dark-Mode enabled -> YES
- Screen-Resolution -> 1920 x 1080 [pix]
- Display-DPI -> 120 x 120 (Scale: 125%).
- Rendering-Technology -> 'DIRECT-WRITE'
- Zoom -> 100%.
- Current Lexer -> 'JSON'
The real fix was made in 76cbde5.
Hello @liux-pro , @rdipardo ,
Feel free to test the "BETA/RC PortableApps", version "Notepad3Portable_5.22.129.1_beta.paf" or newer, see 1st list in issue #1129.
"Notepad3Portable BETA/RC PortableApps" version can be used with or without ".7z" extension.
Also, feel free to test the "BETA/RC Setup", version "Notepad3_5.22.129.1_beta_Setup" or newer, see the 2nd list in issue #1129.
Comments and suggestions are welcome... 😃
5.22.129.1 styles everything as intended 👍🏼
It might be better if the default SCE_JSON_COMPACTIRI
style reused the SCE_JSON_PROPERTYNAME
style.
It's not my issue, but I think @liux-pro was expecting all property names to look the same. Switching into a JSON-LD style in the middle of a plain JSON document is a potential source of confusion.
It's also a bit harder to see the colon separators next to compact IRIs; by default they're practically the same colour:
Notepad3 (x64) v5.22.129.1 beta (dkt1-amr)
Compiler: MS Visual C++ 2022 v17.0.5 (VC v1930)
OS Version: Windows 11 Version 21H2 (Build 22000)
Windows Colors 'Dark-Mode' Theme is SUPPORTED and SELECTED.
Scintilla v515
Lexilla v514
Oniguruma v7.0.0
- Process is not elevated
- User is not in Admin-Group
- Locale -> en-US (CP:'ANSI (CP-65001)')
- Current Encoding -> 'Unicode (UTF-8)'
- Dark-Mode enabled -> NO
- Screen-Resolution -> 1920 x 1080 [pix]
- Display-DPI -> 120 x 120 (Scale: 125%).
- Rendering-Technology -> 'DIRECT-WRITE'
- Zoom -> 100%.
- Current Lexer -> 'JSON'
Hello @liux-pro , @rdipardo ,
Feel free to test the "BETA/RC PortableApps", version "Notepad3Portable_5.22.1228.1_rc2.paf" or newer, see in issue #1129.
"Notepad3Portable BETA/RC PortableApps" version can be used with or without ".7z" extension.
Also, feel free to test the "BETA/RC Setup", version "Notepad3_5.22.1228.1_rc2_Setup" or newer, see the 2nd list in issue #1129.
Comments and suggestions are welcome... 😃