prog8 icon indicating copy to clipboard operation
prog8 copied to clipboard

Syntax highlighting

Open akubiczek opened this issue 4 years ago • 10 comments

Hello!

I have developed an extension for Visual Studio Code to proper Prog8 syntax highlighting. It's far from being perfect but it helps a lot: https://github.com/akubiczek/Prog8-TmLanguage-VsCode

Sample

There is also a regular Textmate XML that can be used in other tools.

best regards Adam

akubiczek avatar Dec 02 '20 13:12 akubiczek

That is great! I will mention this in the documentation

I have been thinking about creating syntax highlighters for KDE Kate, Vim and Sublime Text but it is a lot of work....

We need help with this! 😄

  • [x] VS Code | https://github.com/akubiczek/Prog8-TmLanguage-VsCode
  • [x] IntelliJ IDEA | available in the repo in the syntax-files directory
  • [ ] KDE Kate
  • [x] Vim | available in the repo in the syntax-files directory, contributed by Elektron72
  • [x] Sublime Text 3 | https://github.com/akubiczek/Prog8-TmLanguage-VsCode/tree/master/sublime3
  • [x] Notepad++ | available in the repo in the syntax-files directory, contributed by meisl

irmen avatar Dec 02 '20 16:12 irmen

Very well :) I just made some improvements and added a yaml file for Sublime Text 3: https://github.com/akubiczek/Prog8-TmLanguage-VsCode/blob/master/src/prog8.sublime3.yaml

It's not tested though - I don't use Sublime.

akubiczek avatar Dec 02 '20 18:12 akubiczek

Hm, can't get the sublime syntax to work yet... appreciate the effort though. Could be something on my end. I'm not familiar yet with syntax def files for it too.

irmen avatar Dec 02 '20 19:12 irmen

Hello, the new release comes with Sublime 3 extension. Happy coding ;)

https://github.com/akubiczek/Prog8-TmLanguage-VsCode/tree/master/sublime3

akubiczek avatar Dec 07 '20 18:12 akubiczek

I'm currently working on a Prog8 syntax file for Vim. It's not done yet, but here's a screenshot: Screenshot from 2021-03-22 10-32-24 When it is ready for use, should I fork this repo, place it in syntax-files/Vim, and submit a pull request, or should I create a new repo?

Elektron72 avatar Mar 22 '21 14:03 Elektron72

please use a PR! Thanks for your work on this !

irmen avatar Mar 22 '21 14:03 irmen

Hi,

I just made a syntax file for Notepad++. Without asm {{ ... }} parts though, unsure how to go about that. So, it's not finished but I can make a pull-request already if you want.

screenshot

meisl avatar May 04 '21 19:05 meisl

yeah please make a PR! It's great already even if not covering everything!

irmen avatar May 04 '21 21:05 irmen

Done: https://github.com/irmen/prog8/pull/32

meisl avatar May 04 '21 21:05 meisl

Did a pr for nano highlighting! #123

adiee5 avatar Feb 07 '24 23:02 adiee5