Skip to main content

Pygments lexer for SQL PL

Project description

Pygments lexer for SQL PL

SQL PL (SQL Procedural Language) is the DB2 implementation of ANSI SQL/PSM. This module extends the SqlLexer lexer of Pygments to support more keywords of SQL PL.

Installation

Use the following commands to install the package:

$ cd pygments-sql-pl-lexer
$ [sudo] python setup.py install

Check if the lexer is present

Simply grep the output of the following command for sqlpl.:

$ pygmentize -L lexers | grep sqlpl

Use the lexer in LaTeX

Replace <language> with sqlpl:

\begin{minted}{<language>}
    <code>
\end{minted}

For example:

\begin{minted}[linenos=true,frame=single]{sqlpl}
--#SET TERMINATOR @

CREATE OR REPLACE MODULE project @
\end{minted}

produces

https://raw.githubusercontent.com/mitakas/pygments-sql-pl-lexer/master/docs/example.png

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pygments-sql-pl-lexer, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size pygments_sql_pl_lexer-0.3-py2-none-any.whl (3.8 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size pygments-sql-pl-lexer-0.3.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page