Page 1 of 1

lexer Text IMproved (indentation and syntax highlighting)

Posted: 30.05.2022 15:29
by dimon40001
Hi all,

sharing this from the topic in Russian (viewtopic.php?f=6&t=2822)

This is thenew Text IMproved lexer for CudaText text editor (indentation-based folding and syntax highlight).

This lexer was designed with the Darcula theme in mind.

The idea was to combine the existing syntax highlighting from Python lexer with the code folding and code tree built basing on the indentation (as in Text with indentation).

I actively use the text files for my notes, bookmarks and I found indentation markup (with some of Markdown features) to be very handy.

Any feedback is appreciated.

Sample:
https://github.com/dimon40001/cudatext- ... e-text.png

The lexer can be installed manually from here:
https://github.com/dimon40001/cudatext- ... xtimproved

Posted: 30.05.2022 17:39
by main Alexey
Looks good, congratulations!..

Posted: 27.06.2022 09:03
by Hobbes
Great idea and great lexer.

I've been using text notes for long time and I've always found markup languages too much intrusive. This approach allows me to have a clean and well structured text with visual aids.

Thanks for the good work!

Posted: 21.07.2022 16:06
by Hobbes
Hi,

Maybe it's a silly question (sorry if it's the case), but I'm migrating from Windows 10 to Linux (Debian) and I can't install the lexer properly. I’ve followed the instructions and copy the files in /data/lexlib, restart Cuda… and the lexer is not in the list.

I’ve changed the files owner (to root) and still no available.

Any idea?

Thanks in advance.

Posted: 21.07.2022 16:38
by main Alexey
1. you need the proper folder 'data/lexlib/' - usually it's here
https://wiki.lazarus.freepascal.org/Cud ... .27data.27
2. check that 'Text IMproved.lcf' file is near other .lcf files in data/lexlib/

Posted: 21.07.2022 17:33
by Hobbes
All the lexers are in /usr/share/cudatext/data/lexlib (I've installed Cuda with a .deb package)

Also Tex IMproved files.
Captura de pantalla de 2022-07-21 19-23-34.png

Posted: 21.07.2022 17:39
by main Alexey
no, wrong! /usr/share...... is wrong folder - you need this one:
https://wiki.lazarus.freepascal.org/Cud ... .27data.27

Posted: 21.07.2022 20:35
by Hobbes
Sorry, I had disabled show hidden files option and I was not seeing ~/.config/cudatext.

Everything works fine now, thank you very much! Alexey