prettify.lang
Class LangMatlab

java.lang.Object
  extended by prettify.lang.Lang
      extended by prettify.lang.LangMatlab

public class LangMatlab
extends Lang

This is similar to the lang-ml.js in JavaScript Prettify. All comments are adapted from the JavaScript Prettify.

0 Registers a language handler for MATLAB. To use, include prettify.js and this file in your HTML page. Then put your code inside an HTML tag like

 

See Also:
https://github.com/amroamroamro/prettify-matlab

Nested Class Summary
protected static class LangMatlab.LangMatlabIdentifier
           
protected static class LangMatlab.LangMatlabOperator
           
 
Field Summary
static java.lang.String PR_CODE_OUTPUT
           
static java.lang.String PR_CONSTANT
           
static java.lang.String PR_ERROR
           
static java.lang.String PR_FUNCTION
           
static java.lang.String PR_FUNCTION_TOOLBOX
           
static java.lang.String PR_IDENTIFIER
           
static java.lang.String PR_LINE_CONTINUATION
           
static java.lang.String PR_SYSCMD
           
static java.lang.String PR_TRANSPOSE
           
static java.lang.String PR_WARNING
           
 
Fields inherited from class prettify.lang.Lang
extendedLangs, fallthroughStylePatterns, shortcutStylePatterns
 
Constructor Summary
LangMatlab()
           
 
Method Summary
static java.util.List<java.lang.String> getFileExtensions()
           
 
Methods inherited from class prettify.lang.Lang
getExtendedLangs, getFallthroughStylePatterns, getShortcutStylePatterns, setExtendedLangs, setFallthroughStylePatterns, setShortcutStylePatterns
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PR_IDENTIFIER

public static final java.lang.String PR_IDENTIFIER
See Also:
Constant Field Values

PR_CONSTANT

public static final java.lang.String PR_CONSTANT
See Also:
Constant Field Values

PR_FUNCTION

public static final java.lang.String PR_FUNCTION
See Also:
Constant Field Values

PR_FUNCTION_TOOLBOX

public static final java.lang.String PR_FUNCTION_TOOLBOX
See Also:
Constant Field Values

PR_SYSCMD

public static final java.lang.String PR_SYSCMD
See Also:
Constant Field Values

PR_CODE_OUTPUT

public static final java.lang.String PR_CODE_OUTPUT
See Also:
Constant Field Values

PR_ERROR

public static final java.lang.String PR_ERROR
See Also:
Constant Field Values

PR_WARNING

public static final java.lang.String PR_WARNING
See Also:
Constant Field Values

PR_TRANSPOSE

public static final java.lang.String PR_TRANSPOSE
See Also:
Constant Field Values

PR_LINE_CONTINUATION

public static final java.lang.String PR_LINE_CONTINUATION
See Also:
Constant Field Values
Constructor Detail

LangMatlab

public LangMatlab()
Method Detail

getFileExtensions

public static java.util.List<java.lang.String> getFileExtensions()