foobar2000 - Mp3tag Title_formatting Lexer

All questions regarding lexer highlighting schemes are discussed here...
main Alexey
Posts: 2194
Joined: 25.08.2021 18:15

Re: foobar2000 - Mp3tag Title_formatting Lexer

Post by main Alexey »

About Snippet_Panel snippets in file List.txt. i can publish them as is. but we can improve them - by converting snippets to VSCode format.
https://wiki.freepascal.org/CudaText_plugins

- this will allow to call snippets list only when foobar2000 lexer is active.
- this will allow to use tab-stops for func arguments.
- inserting by tab-key.

converting is not simple work. if you don't want it, i will agree.
Stem75
Posts: 55
Joined: 09.01.2024 15:29

Re: foobar2000 - Mp3tag Title_formatting Lexer

Post by Stem75 »

It's OK with me to convert it. But if it needs to be updated?

I have a couple more that i want to implement but now i don't have the time.
main Alexey
Posts: 2194
Joined: 25.08.2021 18:15

Re: foobar2000 - Mp3tag Title_formatting Lexer

Post by main Alexey »

> But if it needs to be updated?
Then you will edit the JSON file (VSCode format).
Stem75
Posts: 55
Joined: 09.01.2024 15:29

Re: foobar2000 - Mp3tag Title_formatting Lexer

Post by Stem75 »

Ok then. Go for it, it will be much better for sure.
main Alexey
Posts: 2194
Joined: 25.08.2021 18:15

Re: foobar2000 - Mp3tag Title_formatting Lexer

Post by main Alexey »

but it is not my job to convert it. sorry for misunderstanding. only you can convert it.
Stem75
Posts: 55
Joined: 09.01.2024 15:29

Re: foobar2000 - Mp3tag Title_formatting Lexer

Post by Stem75 »

Ah! Ok sorry. But i don't think i will mess with it.

The problem is that i don't have the knowlage and as you told me is not an easy job.

Again sorry my fault.
main Alexey
Posts: 2194
Joined: 25.08.2021 18:15

Re: foobar2000 - Mp3tag Title_formatting Lexer

Post by main Alexey »

Okay. As we don't have category in addons-manager for 'Snippet Panel snippets' I cannot publish this easily. maybe let's don't publish it, you can just put the note in the 1st post of this topic:

Zip file contains snippets for Snippet_Panel plugin. File List.txt must be copied to the folder [cudatext]/data/clips , then it can be called from the Snippet_Panel in the CudaText side panel.
Stem75
Posts: 55
Joined: 09.01.2024 15:29

Re: foobar2000 - Mp3tag Title_formatting Lexer

Post by Stem75 »

OK. Done. Thank you.

I will give it a try to learn and convert it some time but i don't expect much.
main Alexey
Posts: 2194
Joined: 25.08.2021 18:15

Re: foobar2000 - Mp3tag Title_formatting Lexer

Post by main Alexey »

Are you available to requests to make some new lexers? not hard ones: Gleam, PureScript. Gleam is a good lang, several good editors have syntax for it, eg https://packagecontrol.io/packages/Gleam .
Stem75
Posts: 55
Joined: 09.01.2024 15:29

Re: foobar2000 - Mp3tag Title_formatting Lexer

Post by Stem75 »

Thanks for asking. But for the time being, i am very very sorry but i don't think i could do it.

As for converting snippets to VSCode format you've got me thinking into doing it,
but i have no clue.
Can you give me just one working starting example of say entering:

$add(a,b,...)

Or a link explaining how to do it for cudatext in detail with a simple (one or two items). The wiki link didn't help.

The snippet should work automatically or i have to choose it somehow?

I am trying to understand it, so is this a right start or am i doing it all wrong?
___Screenshot   0753.png
Thanks in advance.
Post Reply