presenterm icon indicating copy to clipboard operation
presenterm copied to clipboard

How to add code highligthing for a new langage?

Open Trophime opened this issue 1 year ago • 1 comments

Hi, I wonder how to add support for a new langage.

I would like to give try to presenterm for creating slides for students. The idea is to present the use of gmsh.

I would like to have basic support for the geo file format of gmsh just like the gmsh-vscode extension .

Thanks for your feedback. Best

Trophime avatar Sep 06 '24 11:09 Trophime

This uses bat under the hood to actually do all the syntax highlighting. If the language is supported by bat then it should be as easy as https://github.com/mfontanini/presenterm/pull/361, otherwise this is in the same boat as https://github.com/mfontanini/presenterm/issues/271

calebdw avatar Sep 06 '24 13:09 calebdw

Closing, feel free to reopen if needed. See #388 also for a way to invoke bat directly.

mfontanini avatar Nov 16 '24 20:11 mfontanini