News:

;) This forum is the property of Proton software developers

Main Menu

Notepad++ & Kate highlighters for positron

Started by keytapper, Aug 25, 2022, 08:21 AM

Previous topic - Next topic

keytapper

Hello forum
I update the editors keywords as of the version 4.0.2.5-1.1.0.9
At the page there are the details.
I wrote a crude parser in Python, that returns a result on a file.
The script would take the *.mcd format and write the keywords in a set of lists. Just to find the file(s) in "c:\Program files(86)\ProtonIDE\"

There are few parameters to input to the command line:
-h will give a explanatory list of arguments
-a will append the result to an existing file
-f the input file
-o the output file
last is a choice for the resulting type of file so just write xml or text

After that I got the new keywords and I could modify the relevant configuration file for Notepad++ and Kate.
So this script may be use to change the config files when a new update will be out.
Ignorance comes with a cost

keytapper

It might be easy to add the json format as well, upon request.
Ignorance comes with a cost

Hugursign

#2
Using Python to parse and modify configuration files is a smart move, especially for maintaining consistency across updates. Your command-line parameters for handling file inputs and outputs sound efficient, allowing for flexibility in how you manage the script's results.
To keep track of these configurations and scripts, I find notesonline.com really handy. It lets you jot down details and steps for future reference, ensuring smooth transitions with each update.