Skip to main content

Pygments lexer for SQL PL (SQL Procedural Language), the DB2 implementation of ANSI SQL/PSM

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](http://pygments.org/) to support more keywords of SQL PL.

## Installation

$ 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://github.com/mitakas/pygments-sql-pl-lexer/blob/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.

Source Distribution

pygments-sql-pl-lexer-0.2.tar.gz (1.7 kB view hashes)

Uploaded Source

Built Distribution

pygments_sql_pl_lexer-0.2-py2-none-any.whl (3.7 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page