TTCN-3 syntax highlighting in gerrit [message #1838001] |
Fri, 12 February 2021 11:07  |
Eclipse User |
|
|
|
As not only Osmocom but also Eclipse TITAN itself is using gerrit for code review, I think you also might be interested in having TTCN-3 syntax highlighting in gerrit.
gerrit itself uses highlight.js to perform syntax highlighting of many other programming languages, but unfortuantely not for TTCN-3.
I've created a related feature request at https://github.com/highlightjs/highlight.js/issues/2999 and would even be willing to contribute financially to it, in case somebody wants to work on it.
Just thought I'd share this here, in case somebody might already be working on this, to avoid any duplication of work. I woldn't be surprised if this has come up before within Eclipse TITAN developers.
Regards,
Harald
|
|
|
Re: TTCN-3 syntax highlighting in gerrit [message #1838003 is a reply to message #1838001] |
Fri, 12 February 2021 11:40   |
Eclipse User |
|
|
|
Hi Harald,
This is a nice initiative, thank you for raising the idea.
Some time ago, Yann Garcia - as expert from STF 569 - contributed a TTCN lexer to the Rouge ruby package that is used in Gitlab to highlight syntax. You may see the PR on the project, hopefully it may help (I am not allowed to post links, but you may find it by visiting Github, project rouge-ruby/rouge, Pull request 1337)
Also, there are some IDE support packages available at the Tools > Plugins and Extensions page on the official TTCN-3 org website (again, I can't post the direct link) , maybe they could serve as starting point.
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: TTCN-3 syntax highlighting in gerrit [message #1838795 is a reply to message #1838265] |
Fri, 05 March 2021 03:03  |
Eclipse User |
|
|
|
Matthias Simon wrote on Fri, 19 February 2021 21:23Is highlight.js the only syntax highlighter available in gerrit or is there maybe an option to use another one, say pygments, for example?
i believe the syntax highlighting happens in the client/browser, that's why highlight.js is used.
For the same reason, I don't think you can easily adapt it to use any other tool in any other language.
|
|
|
Powered by
FUDForum. Page generated in 0.08740 seconds