Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.29 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.29 KB

Google-code-prettify : Eiffel language plugin

Introduction

[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

Content

- 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

Using this module in your html

  1. In the <head> portion, reference

  2. Initialize the prettify module by calling 'prettyPrint()'

    • e.g: <body onload="prettyPrint()">
  3. Trigger pretty printing in your <pre> nodes

    • e.g: <pre class="prettyprint lang-eiffel">
    • or with line numbering: <pre class="prettyprint lang-eiffel linenums">