rouge-ruby / rouge

A pure Ruby code highlighter that is compatible with Pygments
https://rouge.jneen.net/
Other
3.31k stars 732 forks source link

Support for UnrealScript Syntax Highlighting #1065

Open Duckbuster opened 5 years ago

Duckbuster commented 5 years ago

Is it possible to add Syntax Highlighting for UnrealScript(.uc, https://wiki.beyondunreal.com/UnrealScript)? The Syntax is very similar to Java, so I think it should be easy to implement.

Asked on gitlab ce issue tracker, and they referred me to here (since gitlab uses rouge for their Syntax highlighting) https://gitlab.com/gitlab-org/gitlab-ce/issues/56291

Thanks in advance.

vidarh commented 5 years ago

@Duckbuster Do you know if it's supported by either Vim, GtkSourceView or Sublime? (see #1066 for why I'm asking; though if there's support for it in any other highlighter that might potentially make it faster/easier even without automating any conversion)

Duckbuster commented 5 years ago

It's supported in vim out of the box and I know of a SublimeText addon that adds support for it:(https://github.com/Zinggi/UnrealScriptIDE)

pyrmont commented 5 years ago

@Duckbuster Thanks for filing this issue :)

Rouge mostly relies on the support of our community for new language lexers. We have quite a backlog at the moment but always encourage new language lexer submissions to be submitted via PR. If you'd like to contribute, please feel free. The documentation is a little sparse at the moment but I'm looking to improve that. There is a draft of a new guide on lexer development that might be helpful :)