rouge icon indicating copy to clipboard operation
rouge copied to clipboard

Add a parser for Scilab language

Open vincentcouvert opened this issue 2 years ago • 7 comments

Hi all, Please find below information related to the development of a Scilab parser in Rouge. Best regards.

The name of the language Scilab: https://www.scilab.org/ Online help: https://help.scilab.org/

Implementation in other libraries Pygments: https://pygments.org/docs/lexers/#pygments.lexers.matlab.ScilabLexer Chroma: https://github.com/alecthomas/chroma/blob/master/lexers/embedded/scilab.xml Highlight: https://github.com/highlightjs/highlight.js/blob/main/src/languages/scilab.js

Additional context GitLab uses Rouge to detect language used in files and GitLab is now the official Scilab development platform. Having this feature in Rouge would simplify the reading of Scilab code in repository, issues, wiki, ...

vincentcouvert avatar Jan 13 '23 09:01 vincentcouvert

Reference issue on GitLab side: https://gitlab.com/gitlab-org/gitlab/-/issues/377795

vincentcouvert avatar Jan 13 '23 16:01 vincentcouvert

Reference issue on Scilab side: https://gitlab.com/scilab/scilab/-/issues/16895

vincentcouvert avatar Jan 13 '23 16:01 vincentcouvert

{% highlight ruby linenos %}
def foo
  puts 'foo'
end
{% endhighlight %}

y377 avatar Jan 16 '23 06:01 y377

@y377 what do you mean?

vincentcouvert avatar Jan 16 '23 08:01 vincentcouvert

Sorry, I just want to try code highlighting, it turns out that GitHub does not support this way of defining code blocks

image Do you support this way of defining code blocks? Because it is very convenient to write in the markdown editor, because it is suitable for non-code developers to use!

y377 avatar Jan 16 '23 08:01 y377

@y377 I think your question is not related to this issue (which is about Scilab language support).

vincentcouvert avatar Jan 17 '23 13:01 vincentcouvert

See corresponding PR : https://github.com/rouge-ruby/rouge/pull/1916

vincentcouvert avatar Jan 20 '23 14:01 vincentcouvert