[Google-code-prettify] (https://code.google.com/p/google-code-prettify/) is a Javascript module and CSS file that allows syntax highlighting of source code snippets in an html page.
This plugin adds syntax highlighting for the Eiffel language (see eiffel.org).
status: beta
- Readme.md this file
+ src
- lang-eiffel.js prettify module, defining lexeme classes
+ examples
- eiffel.html a sample file
+ styles
- lang-eiffel.css sample stylesheet
-
In the <head> portion, reference
- your stylesheet, e.g: <script src="http://mysite.com/styles/lang-eiffel.js"\>\</script>
- the prettify.js module e.g: <script src="https://google-code-prettify.googlecode.com/svn/loader/prettify.js"\>\</script>
- the lang-eiffel.js module e.g: <script src="http://mysite.com/scripts/lang-eiffel.js"\>\</script>
-
Initialize the prettify module by calling 'prettyPrint()'
- e.g: <body onload="prettyPrint()">
-
Trigger pretty printing in your <pre> nodes
- e.g: <pre class="prettyprint lang-eiffel">
- or with line numbering: <pre class="prettyprint lang-eiffel linenums">