prettify.lang
Class LangSql

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

public class LangSql
extends Lang

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

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

(my SQL code)
http://savage.net.au/SQL/sql-99.bnf.html is the basis for the grammar, and http://msdn.microsoft.com/en-us/library/aa238507(SQL.80).aspx and http://meta.stackoverflow.com/q/92352/137403 as the bases for the keyword list.

Author:
mikesamuel@gmail.com

Field Summary
 
Fields inherited from class prettify.lang.Lang
extendedLangs, fallthroughStylePatterns, shortcutStylePatterns
 
Constructor Summary
LangSql()
           
 
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
 

Constructor Detail

LangSql

public LangSql()
Method Detail

getFileExtensions

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