syncweb icon indicating copy to clipboard operation
syncweb copied to clipboard

language support: thoughts on the 'mark_*' functions in lang.ml

Open bentxt opened this issue 3 years ago • 2 comments

It would be nice to increase the number of programming languages to work with

Right now the supported langs, are according to --help

-lang  <lang> (default=ocaml, choices=ocaml|C|shell|ocamlyacc|php|haskell)

Besides the -lang option it would be nice to have a general option to define the opening (and optionally closing) comment character.

It appears to me that the different mark_.ml functions in lang.ml are very similar, and a general implementions should be possible.

Just some thoughts ...

bentxt avatar Jan 27 '23 12:01 bentxt

yes.

aryx avatar Jan 27 '23 13:01 aryx

It's also not difficult to modify lang.ml and add your favorite language.

aryx avatar Jan 27 '23 13:01 aryx