Single Text Character Ending (; should be visible!)
int i=32; String k = "Hello World";
Line indentation of first line shouldn't removed
alert('hello world');
new FX.scroll(args);
}
// other stuff
Line-Offset 4
alert('hello world');
Line-Offset 4; Force Linenumbers OFF
alert('hello world');
Unknown Language - should be highlighted as standard
var x = "hello world";
RAW Code - should be rendered unhighlighted
var x = "hello world";
// don't highlight me!!!
UPPERCASE language name- should be rendered as javascript
var x ={
a: "hello world",
b: 3
};
Empty language attribute - should be rendered as standard
var x ={
a: "hello world",
b: 3
};
UPPERCASE theme name - should be rendered as git theme
if (this.options.editable) {
lighter.set('contenteditable', 'true');
}
Overlapping Regex Matches
echo 'You can also have embedded newlines in
strings this way as it is
okay to do';
// Outputs: Arnold once said: "I'll be back"
echo 'Arnold once said: "I\'ll be back"';
// Outputs: You deleted C:\*.*?
echo 'You deleted C:\\*.*?';
/** String's */
echo 'this is a simple string';
Language Alias "mD" - should rendered as markdown
### Version 1.5.2 ###
* Added Plugin section to readme file
### Version 1.5.1 ###
* fixed YAML header within NSIS language support
### Version 1.5 ###
* Added language support for NSIS (Nullsoft Scriptable Install System) provided by Jan T. Sott
### Version 1.4 ###
* Added Quickstart Example
* Renamed *Tests/* to *Examples/*
### Version 1.3 ###
* Added odd/even classes to Compiler.List
* Added Version+Build informations to css+js builds
No Code. Should render empty.
Should rendered as full HTML comment - NOT <!--
<!-- <meta name="MetaTest" version="1.9.2" /> -->
Should also rendered as full HTML comment
<!-- -->
Double escaped HTML metacharacters &lt; should rendered as <
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<building name="GlobalDynamics Main Building" id="0xFA8A91C6617DFA1B">
<group level="2">
MooTools Theme
if (this.options.editable) {
lighter.set('contenteditable', 'true');
}
Should be display in the style: comment,newline,code,newline,newline, comment
// should the element set to be editable ?
if (this.options.editable) {
// test
No class - should render with default language/theme
var myMootools = new Class({});
Should be unlighted - enlight(false) is called on the element
compile: function(language, theme, tokens)
{
var lighter = this._compile(language, theme, tokens);
// Set class and id attributes.
lighter.set('class', theme + 'Lighter');
lighter.set('id', 'Lighter_' + Date.now());
if (this.options.editable) {
lighter.set('contenteditable', 'true');
}
return lighter;
},
Should be lighted - enlight(false).enlight(true) is called on the element
compile: function(language, theme, tokens)
{
var lighter = this._compile(language, theme, tokens);
return lighter;
},
Should be grouped together - git theme
console.info("Hello World - I'am Javascript");
System.out.println("Hello World - I'am Java");
echo 'Hello World - I\'am PHP';
twilight theme - grouped (single element)
if (this.options.editable) {
lighter.set('contenteditable', 'true');
}
mocha theme - grouped (single element, auto name)
if (this.options.editable) {
lighter.set('contenteditable', 'true');
}