Skip to main content

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

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.3.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygments_sql_pl_lexer-0.3-py2-none-any.whl (3.8 kB view details)

Uploaded Python 2

File details

Details for the file pygments-sql-pl-lexer-0.3.tar.gz.

File metadata

File hashes

Hashes for pygments-sql-pl-lexer-0.3.tar.gz
Algorithm Hash digest
SHA256 fc72c60d60044125a9f502cbbac1a13f4a0bb0bb6e6082a1dd378a48a26523c3
MD5 a2123af0ca349a44db515fc89f86108c
BLAKE2b-256 f9b32ba67ead825f590196679dbda1adbbfed7c7798a50a5fa7edefea5941886

See more details on using hashes here.

File details

Details for the file pygments_sql_pl_lexer-0.3-py2-none-any.whl.

File metadata

File hashes

Hashes for pygments_sql_pl_lexer-0.3-py2-none-any.whl
Algorithm Hash digest
SHA256 7b4ba5d739c876e63266623df58ef96a04cdcb184af93c35df57ed4fbaa37484
MD5 199d6972f9c462ae61363812036496a5
BLAKE2b-256 43aeac6d0b60be89d470983d61fee1232666ac25069e3625e379933842bfbc29

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3 This release

2 files

0.2.1

0.2

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page