lexer Text IMproved (indentation and syntax highlighting)

All questions regarding lexer highlighting schemes are discussed here...
Post Reply
dimon40001
Posts: 21
Joined: 05.05.2022 18:52

lexer Text IMproved (indentation and syntax highlighting)

Post 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
Last edited by dimon40001 on 04.08.2022 20:27, edited 2 times in total.
main Alexey
Posts: 2194
Joined: 25.08.2021 18:15

Post by main Alexey »

Looks good, congratulations!..
Hobbes
Posts: 42
Joined: 17.05.2022 07:53

Post 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!
Hobbes
Posts: 42
Joined: 17.05.2022 07:53

Post 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.
main Alexey
Posts: 2194
Joined: 25.08.2021 18:15

Post 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/
Hobbes
Posts: 42
Joined: 17.05.2022 07:53

Post 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
main Alexey
Posts: 2194
Joined: 25.08.2021 18:15

Post by main Alexey »

no, wrong! /usr/share...... is wrong folder - you need this one:
https://wiki.lazarus.freepascal.org/Cud ... .27data.27
Hobbes
Posts: 42
Joined: 17.05.2022 07:53

Post 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
Post Reply