Standard Theme

this.tokens = tokens || [];
options = this.options;

// Set Lighter/Language/Theme relationship.
this.lighter = lighter;
this.theme = new Theme[theme || this.defaultTheme](lighter, this);

// Add delimiter rules if not in strict mode
if (!options.strict) {
	if (this.delimiters.start) this.addLanguage('delimBeg', this.delimiters.start, 'de1');
	if (this.delimiters.end)   this.addLanguage('delimEnd', this.delimiters.end,   'de2');
}

// Set Keyword Rules from this.keywords object.
this.keywords.each(function(keywordSet, ruleName) {
	if (keywordSet.csv != '') {
		this.addLanguage(ruleName, this.csvToRegExp(keywordSet.csv, "g"), keywordSet.alias);
	}
}, this);
	
// Source:  http://en.wikipedia.org/wiki/Java_%28programming_language%29
// OddEven.java
import javax.swing.JOptionPane;
 
public class OddEven {
    /**
     * "input" is the number that the user gives to the computer
     */
    private int input; // a whole number("int" means integer)
 
    /**
     * This is the constructor method. It gets called when an object of the OddEven type
     * is being created.
     */
    public OddEven() {
        /*
         * In most Java programs constructors can initialize objects with default values, or create
         * other objects that this object might use to perform its functions. In some Java programs, the
         * constructor may simply be an empty function if nothing needs to be initialized prior to the
         * functioning of the object. In this program's case, an empty constructor would suffice.
         * A constructor must exist; however, if the user doesn't put one in then the compiler
         * will create an empty one.
         */
    }
}
	
/** Test Snippet */
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");

/* check connection */
if (mysqli_connect_errno()) {
    printf("Connect failed: %s\n", mysqli_connect_error());
    exit();
}

/* Create table doesn't return a resultset */
if ($mysqli->query("CREATE TEMPORARY TABLE myCity LIKE City") === TRUE) {
    printf("Table myCity successfully created.\n");
}

/* Select queries return a resultset */
if ($result = $mysqli->query("SELECT Name FROM City LIMIT 10")) {
    printf("Select returned %d rows.\n", $result->num_rows);

    /* free result set */
    $result->close();
}
	

Git Theme

this.tokens = tokens || [];
options = this.options;

// Set Lighter/Language/Theme relationship.
this.lighter = lighter;
this.theme = new Theme[theme || this.defaultTheme](lighter, this);

// Add delimiter rules if not in strict mode
if (!options.strict) {
	if (this.delimiters.start) this.addLanguage('delimBeg', this.delimiters.start, 'de1');
	if (this.delimiters.end)   this.addLanguage('delimEnd', this.delimiters.end,   'de2');
}

// Set Keyword Rules from this.keywords object.
this.keywords.each(function(keywordSet, ruleName) {
	if (keywordSet.csv != '') {
		this.addLanguage(ruleName, this.csvToRegExp(keywordSet.csv, "g"), keywordSet.alias);
	}
}, this);
	
// Source:  http://en.wikipedia.org/wiki/Java_%28programming_language%29
// OddEven.java
import javax.swing.JOptionPane;
 
public class OddEven {
    /**
     * "input" is the number that the user gives to the computer
     */
    private int input; // a whole number("int" means integer)
 
    /**
     * This is the constructor method. It gets called when an object of the OddEven type
     * is being created.
     */
    public OddEven() {
        /*
         * In most Java programs constructors can initialize objects with default values, or create
         * other objects that this object might use to perform its functions. In some Java programs, the
         * constructor may simply be an empty function if nothing needs to be initialized prior to the
         * functioning of the object. In this program's case, an empty constructor would suffice.
         * A constructor must exist; however, if the user doesn't put one in then the compiler
         * will create an empty one.
         */
    }
}
	
/** Test Snippet */
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");

/* check connection */
if (mysqli_connect_errno()) {
    printf("Connect failed: %s\n", mysqli_connect_error());
    exit();
}

/* Create table doesn't return a resultset */
if ($mysqli->query("CREATE TEMPORARY TABLE myCity LIKE City") === TRUE) {
    printf("Table myCity successfully created.\n");
}

/* Select queries return a resultset */
if ($result = $mysqli->query("SELECT Name FROM City LIMIT 10")) {
    printf("Select returned %d rows.\n", $result->num_rows);

    /* free result set */
    $result->close();
}
	

Mocha Theme

this.tokens = tokens || [];
options = this.options;

// Set Lighter/Language/Theme relationship.
this.lighter = lighter;
this.theme = new Theme[theme || this.defaultTheme](lighter, this);

// Add delimiter rules if not in strict mode
if (!options.strict) {
	if (this.delimiters.start) this.addLanguage('delimBeg', this.delimiters.start, 'de1');
	if (this.delimiters.end)   this.addLanguage('delimEnd', this.delimiters.end,   'de2');
}

// Set Keyword Rules from this.keywords object.
this.keywords.each(function(keywordSet, ruleName) {
	if (keywordSet.csv != '') {
		this.addLanguage(ruleName, this.csvToRegExp(keywordSet.csv, "g"), keywordSet.alias);
	}
}, this);
	
// Source:  http://en.wikipedia.org/wiki/Java_%28programming_language%29
// OddEven.java
import javax.swing.JOptionPane;
 
public class OddEven {
    /**
     * "input" is the number that the user gives to the computer
     */
    private int input; // a whole number("int" means integer)
 
    /**
     * This is the constructor method. It gets called when an object of the OddEven type
     * is being created.
     */
    public OddEven() {
        /*
         * In most Java programs constructors can initialize objects with default values, or create
         * other objects that this object might use to perform its functions. In some Java programs, the
         * constructor may simply be an empty function if nothing needs to be initialized prior to the
         * functioning of the object. In this program's case, an empty constructor would suffice.
         * A constructor must exist; however, if the user doesn't put one in then the compiler
         * will create an empty one.
         */
    }
}
	
/** Test Snippet */
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");

/* check connection */
if (mysqli_connect_errno()) {
    printf("Connect failed: %s\n", mysqli_connect_error());
    exit();
}

/* Create table doesn't return a resultset */
if ($mysqli->query("CREATE TEMPORARY TABLE myCity LIKE City") === TRUE) {
    printf("Table myCity successfully created.\n");
}

/* Select queries return a resultset */
if ($result = $mysqli->query("SELECT Name FROM City LIMIT 10")) {
    printf("Select returned %d rows.\n", $result->num_rows);

    /* free result set */
    $result->close();
}
	

Panic Theme

this.tokens = tokens || [];
options = this.options;

// Set Lighter/Language/Theme relationship.
this.lighter = lighter;
this.theme = new Theme[theme || this.defaultTheme](lighter, this);

// Add delimiter rules if not in strict mode
if (!options.strict) {
	if (this.delimiters.start) this.addLanguage('delimBeg', this.delimiters.start, 'de1');
	if (this.delimiters.end)   this.addLanguage('delimEnd', this.delimiters.end,   'de2');
}

// Set Keyword Rules from this.keywords object.
this.keywords.each(function(keywordSet, ruleName) {
	if (keywordSet.csv != '') {
		this.addLanguage(ruleName, this.csvToRegExp(keywordSet.csv, "g"), keywordSet.alias);
	}
}, this);
	
// Source:  http://en.wikipedia.org/wiki/Java_%28programming_language%29
// OddEven.java
import javax.swing.JOptionPane;
 
public class OddEven {
    /**
     * "input" is the number that the user gives to the computer
     */
    private int input; // a whole number("int" means integer)
 
    /**
     * This is the constructor method. It gets called when an object of the OddEven type
     * is being created.
     */
    public OddEven() {
        /*
         * In most Java programs constructors can initialize objects with default values, or create
         * other objects that this object might use to perform its functions. In some Java programs, the
         * constructor may simply be an empty function if nothing needs to be initialized prior to the
         * functioning of the object. In this program's case, an empty constructor would suffice.
         * A constructor must exist; however, if the user doesn't put one in then the compiler
         * will create an empty one.
         */
    }
}
	
/** Test Snippet */
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");

/* check connection */
if (mysqli_connect_errno()) {
    printf("Connect failed: %s\n", mysqli_connect_error());
    exit();
}

/* Create table doesn't return a resultset */
if ($mysqli->query("CREATE TEMPORARY TABLE myCity LIKE City") === TRUE) {
    printf("Table myCity successfully created.\n");
}

/* Select queries return a resultset */
if ($result = $mysqli->query("SELECT Name FROM City LIMIT 10")) {
    printf("Select returned %d rows.\n", $result->num_rows);

    /* free result set */
    $result->close();
}
	

Tutti Theme

this.tokens = tokens || [];
options = this.options;

// Set Lighter/Language/Theme relationship.
this.lighter = lighter;
this.theme = new Theme[theme || this.defaultTheme](lighter, this);

// Add delimiter rules if not in strict mode
if (!options.strict) {
	if (this.delimiters.start) this.addLanguage('delimBeg', this.delimiters.start, 'de1');
	if (this.delimiters.end)   this.addLanguage('delimEnd', this.delimiters.end,   'de2');
}

// Set Keyword Rules from this.keywords object.
this.keywords.each(function(keywordSet, ruleName) {
	if (keywordSet.csv != '') {
		this.addLanguage(ruleName, this.csvToRegExp(keywordSet.csv, "g"), keywordSet.alias);
	}
}, this);
	
// Source:  http://en.wikipedia.org/wiki/Java_%28programming_language%29
// OddEven.java
import javax.swing.JOptionPane;
 
public class OddEven {
    /**
     * "input" is the number that the user gives to the computer
     */
    private int input; // a whole number("int" means integer)
 
    /**
     * This is the constructor method. It gets called when an object of the OddEven type
     * is being created.
     */
    public OddEven() {
        /*
         * In most Java programs constructors can initialize objects with default values, or create
         * other objects that this object might use to perform its functions. In some Java programs, the
         * constructor may simply be an empty function if nothing needs to be initialized prior to the
         * functioning of the object. In this program's case, an empty constructor would suffice.
         * A constructor must exist; however, if the user doesn't put one in then the compiler
         * will create an empty one.
         */
    }
}
	
/** Test Snippet */
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");

/* check connection */
if (mysqli_connect_errno()) {
    printf("Connect failed: %s\n", mysqli_connect_error());
    exit();
}

/* Create table doesn't return a resultset */
if ($mysqli->query("CREATE TEMPORARY TABLE myCity LIKE City") === TRUE) {
    printf("Table myCity successfully created.\n");
}

/* Select queries return a resultset */
if ($result = $mysqli->query("SELECT Name FROM City LIMIT 10")) {
    printf("Select returned %d rows.\n", $result->num_rows);

    /* free result set */
    $result->close();
}
	

Twilight Theme

this.tokens = tokens || [];
options = this.options;

// Set Lighter/Language/Theme relationship.
this.lighter = lighter;
this.theme = new Theme[theme || this.defaultTheme](lighter, this);

// Add delimiter rules if not in strict mode
if (!options.strict) {
	if (this.delimiters.start) this.addLanguage('delimBeg', this.delimiters.start, 'de1');
	if (this.delimiters.end)   this.addLanguage('delimEnd', this.delimiters.end,   'de2');
}

// Set Keyword Rules from this.keywords object.
this.keywords.each(function(keywordSet, ruleName) {
	if (keywordSet.csv != '') {
		this.addLanguage(ruleName, this.csvToRegExp(keywordSet.csv, "g"), keywordSet.alias);
	}
}, this);
	
// Source:  http://en.wikipedia.org/wiki/Java_%28programming_language%29
// OddEven.java
import javax.swing.JOptionPane;
 
public class OddEven {
    /**
     * "input" is the number that the user gives to the computer
     */
    private int input; // a whole number("int" means integer)
 
    /**
     * This is the constructor method. It gets called when an object of the OddEven type
     * is being created.
     */
    public OddEven() {
        /*
         * In most Java programs constructors can initialize objects with default values, or create
         * other objects that this object might use to perform its functions. In some Java programs, the
         * constructor may simply be an empty function if nothing needs to be initialized prior to the
         * functioning of the object. In this program's case, an empty constructor would suffice.
         * A constructor must exist; however, if the user doesn't put one in then the compiler
         * will create an empty one.
         */
    }
}
	
/** Test Snippet */
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");

/* check connection */
if (mysqli_connect_errno()) {
    printf("Connect failed: %s\n", mysqli_connect_error());
    exit();
}

/* Create table doesn't return a resultset */
if ($mysqli->query("CREATE TEMPORARY TABLE myCity LIKE City") === TRUE) {
    printf("Table myCity successfully created.\n");
}

/* Select queries return a resultset */
if ($result = $mysqli->query("SELECT Name FROM City LIMIT 10")) {
    printf("Select returned %d rows.\n", $result->num_rows);

    /* free result set */
    $result->close();
}