A colored year on the web for Eiffel
- Contents
- Prism
- ACE editor
- Rouge
- Other syntax highlighters
Happy new year!
ACE, Prism, and Rouge now support the syntax highlighting of the Eiffel language.
Prism
Prism is by-design a lightweight syntax highlighter for the web. It is very simple to use, and the download page enables to get only what you need. It proposes interesting add-ons (Line numbers, File Highlight, ...).
The library is usable with a bench of tools, including Wordpress and Jekyll.
You can test the highlighting here. The Eiffel support should be full, including the verbatim options.
If you note any issues, you can report it on my github fork.
I have commited a Pull Request to enable class name highlighting. Please feel free to express your support in the discussion thread of the Pull Request. The PR is waiitng for author agreement since January...
ACE editor
ACE Editor is certainly the most use web-based code editor. A bench of web applications use ACE including:
- the Github web editor
- the Cloud9 web IDE
- Code Combat, a game to learn programming basis
- and more
The support of Eiffel is not full. In particular, the verbatim options and multiple-line strings are not supported.
If you note any issues, you can report it on my github fork.
Rouge
Rouge is a recent syntax highlighter increasing in popularity.It is compatible with the stylesheets of Pygments.
It is used by:
- Gitlab
- krandown, a markdown parser (anoption must be enabled)
- RedCarpet, another markdown parser
- the static site builder Middleman
The support of Eiffel is not full. In particular, the verbatim options are not supported.
If you note any issues, you can report it on my github fork.
Other syntax highlighters
Some tools need updates in order to fully support the highlighting of Eiffel.For instance:
- Code Mirror, a web-based code editor
- Pygments
- TexMate, (used also by Github Linguist
- GeSHi
Enjoy ;)
Thanks ...
... this is very useful.
Great contribution. I was
Great contribution.
I was trying to put some suggestions on the git page but it doesn't seem possible.
Issue tracker
Oops! I forgot to enable it. It is now fixed ;)
Nice contribution
This is very welcome. Side not, the issue tracker is not activated on your github project (https://github.com/Conaclos/prism), so no way to report issue or other ;)
Otherwise, soon I will try to list all Eiffel syntax related resource that exists, that need update or need to be done. This would include syntax highlighting, and also editor support.
And I will try to fill the gap, and coordinate any effort from the community to provide support for Eiffel in the most popular tools. I hope then for any future tool, people will copy/migrate existing syntax/config file for Eiffel.
Great!
Good idea!
The main goal of these contributions is to simplify the sharing of Eiffel codes. Support for Eiffel in the most popular tools is welcomed.
google-code-prettify
google-code-prettify is also supported thanks to Paul Crismer contribution.
Class names
I was hoping Prism might do a better job than github by highlighting class names like in EiffelStudio. If it could highlight class names I would definitely like to use it for a project I have in mind. But good work all the same.
Relevant note
Manu proposed me to create an "eiffelstudio theme" for Prism. see the issue tracker.
For reaching this goal, the highlighting of the class-names is needed. The addition is planned ;)