Skip to main content
Help us improve Python packaging – donate today!

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

Release history Release notifications

This version
History Node

0.3

History Node

0.2.1

History Node

0.2

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pygments_sql_pl_lexer-0.3-py2-none-any.whl (3.8 kB) Copy SHA256 hash SHA256 Wheel py2 Dec 12, 2015
pygments-sql-pl-lexer-0.3.tar.gz (1.9 kB) Copy SHA256 hash SHA256 Source None Dec 12, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page