You are here: PSPad forum > English discussion forum > Trouble creating a new user highlighter

Trouble creating a new user highlighter

#1 Trouble creating a new user highlighter

Posted by: Gorlash | Date: 2015-01-13 17:32 | IP: IP Logged

I need a highlighter for JSON files. I tried following the built-in help, but it doesn't apply any highlighting to the file. What I did is:

1. in \pspad\syntax, copy another ini file to json.ini
2. modify json.ini to contain what I think are correct syntax
3. in pspad, open json.ini using User Highlighter, clean up things so that they are correct, then Save
4. open a JSON file
5. in Highlighter settings:Specification, select the json highlighter for my file.

However, none of the highlighting gets applied to my .json file.
What am I doing wrong??

Here is my json.ini:
;PSPad user HighLighter definition file
[Settings]
Name=JSON
HTMLGroup=0
Label=1
FileType=*.json
CommentString=
IndentChar={
UnIndentChar=}
TabWidth=2
DoubleQuote=1
EscString=1
KeyWordChars=
CodeExplorer=ftJS
DocComment=
[KeyWords]
$schema=
description=
integer=
number=
object=
properties=
title=
type=
[ReservedWords]
"=
,=
:=
[=
]=
{=
}=
[KeyWords2]
[KeyWords3]

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR