Languages

Build-In Support

EnlighterJS v2.10.1 is out including new Languages & Themes. View the Changelog

HTML

Select Theme

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor <link rel="stylesheet" type="text/css" href="../Build/EnlighterJS.yui.css" /> invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.

<head>
		<!-- Include EnlighterJS Styles -->
		<link rel="stylesheet" type="text/css" href="../Build/EnlighterJS.yui.css" />
		
		<!-- Include MooTools Framework -->
		<script type="text/javascript" src="mootools-core-1.4.5-full-nocompat.js"></script>
		
		<!-- Include EnlighterJS -->
		<script type="text/javascript" src="../Build/EnlighterJS.yui.js" ></script>
		
		<!-- Initialize EnlighterJS --> 
		<script type="text/javascript">
		window.addEvent('domready', function() {
			// highlight all pre tags
			$$('pre').light({
				altLines : 'hover',
				indent : 2,
				editable: false
			});
		});
		</script>

<!-- Syntax highlight using Languages/Js.js and default theme --> 
<pre data-enlighter-language="css">var myClass = new Class({})</pre> 
 
<!-- Syntax highlight using Languages/Php.js and theme from Themes/Twilight.css --> 
<pre data-enlighter-language="php" data-enlighter-theme="twilight"><?php php_info() ?></pre>