Saravanan666/pypi-org huggingface dataset:
Package: pygments-lexer-babylon
A javascript lexer for Pygments that uses the babylon parserWARNING!Node.jsmust be installed to use this package. Set the environment
variablePYGMENTS_NODE_COMMANDto the command you use to run Node.
The default isnodejs. If the following command works, you are most
probably OK:nodejs -vWhy?Pygments can not properly highlight new and shinyjavascript(particularyjsx). Until all these features are implemented in
Pygments, you can use this package as a fallback. Also, it is a good fun
to experiment with various technologies :wink:.InstallNothing too much here, apart from theNode.jsdependency:pip install pygments-lexer-babylonThis will installPygmentsfor you (>=2.0), so if something depends
on an older version,virtualenvis recommended. (Or usedocker…)UsageThe importable name of the package:pygmentslexerbabylon. It
provides two lexers:BabylonLexerandBabylonHtmlLexer. The
latter is needed because the built inHtmlLexerhard codes the usage
ofJavascriptLexerbetween<script>tags.If you have “manual” control over which lexer to use, do something like
this:frompygmentsimporthighlightfrompygments.formattersimportHtmlFormatterfrompygmentslexerbabylonimportBabylonLexerlexer=BabylonLexer()# You select it manually...formatter=HtmlFormatter(linenos=True,cssclass="source")code='<ReactComponent/>'result=highlight(code,lexer,formatter)In some cases you do not have control over the selected lexer. Let’s
say, you use Markdown, which turns out to use code like this:frompygments.lexersimportget_lexer_by_name,guess_lexertry:lexer=get_lexer_by_name(self.lang)exceptValueError:try:lexer=guess_lexer(self.src)exceptValueError:lexer=get_lexer_by_name('text')In this case use language namejsxfor javascript files andhtmlxfor html files.If you use thepygmentizeall the above works:$pygmentize-ljsxmyreact.js# Note the extension is not jsx$pygmentizemyreact.jsx$pygmentize-lhtmlxhtmlwithjsx.html$pygmentizehtmlwithjsx.htmlxGotchasIt is a bit slower thanPygments…May fail for really large files (0.5 MB worked for me though)Produces slightly different result than the originalPygmentslexer
Package: pygments-lexer-clean
A Pygments lexer for the Clean languageThis lexer was originally in the Pygments repository (and an older version is
still present there), but now that the maintainers don’t regularly check PRs it
is easier to have the lexer in a separate repository.See PyPi:https://pypi.python.org/pypi/pygments-lexer-cleanSource code:https://gitlab.com/cloogle/archived/pygments-lexer-clean
Package: pygments-lexer-pseudocode
# (French) Pseudocode syntax lexer for PygmentsThis package contains a Pygments Lexer for some basic pseudocode algorithmics.## InstallationThe lexer is available as a Pip package:pip install pygments-lexer-pseudocodeAlternatively, to install from the git repository: (you may need to sudo depending on your Python environment)python setup.py install## UsageAfter installation the Pseudocode lexer automatically registers itself for files with the.algoand.pseudocodeextensions. Therefore, usage is easy:pygmentize document.algoYou can also manally indicate you want to use the Pseudocode lexer by using a command line flag:pygmentize -l pseudocode somefile## ContributeIf you found a bug, don’t hesitate to make a pull request.## LicenseThe Pseudocode lexer is licensed under the terms of the MIT licence
Package: pygments-lexer-pseudocode-fr
Project Page :rod2ik/pygments-lexer-pseudocode-frThis project is a PseudoCode Lexer for French LanguageIt also acceptsLaTeX Syntaxforsomecharacters with the \ symbol:Greeks letters (lowercase and uppercase)void symbol (\varnothing, \void, \emptyset)some very basic mathematical symbols : \in, \notin, \cap, \cup, etc..Some examples in the MkHack3rs site :https://eskool.gitlab.io/mkhack3rs/pseudocode/This project is one of others mkdocs-related projects.Please have a look at this page for a more complete view of all projects compatible with for mkdocs:https://eskool.gitlab.io/mkhack3rs/This project was initially a continuation of the job of (from newer to older) :All newer Credits:rod2ik/pygments-lexer-pseudocode-frSimon Watchersvvac/pygments-lexer-pseudocodeIn order to get it work with pip, and ultimately with mkdocs and mkdocs-material.Licences:All newer parts (Rodrigo Schwencke) areGPLv3+Older parts (Simon Watcher) areMIT License
Package: pygments-lexer-solidity
Solidity lexer for Pygments, distributed as a PyPI package.If you want pretty syntax highlighting in documentation for Solidity
files, and you’re using Pygments, this might just be the thing for you.Currently, Solidity keywords up to version 0.8.0 are included, to the
best of my ability. MRs are welcome!The Yul intermediate language is also supported, including for
stand-alone code blocks.InstallationSet up your virtual environment, no matter how you do it.%virtualenv.virtualenv/`basename$(pwd)`%source.virtualenv/`basename$(pwd)`/bin/activateThen install via PyPI:%pipinstallpygments-lexer-solidityOr from a local git repo:%pipinstall-rrequirements.txt%pipinstall-e.UsageDepends on doc-building infrastructure.SphinxHave this in Sphinx’sconf.py:fromsphinx.highlightingimportlexersfrompygments_lexer_solidityimportSolidityLexer,YulLexerlexers['solidity']=SolidityLexer()lexers['yul']=YulLexer()Then use..code-block::solidityfor Solidity code blocks, or..code-block::yulfor Yul.Command-lineTo test a local copy of the lexer on the CLI:%pygmentize-x-lpygments_lexer_solidity/lexer.py:SolidityLexerexample.solTo generate a colorised HTML file:%pygmentize-v-Ofull,style=fruity-oexample.sol.htmlexample.solLicenseBSD 2-clause simplified. SeeLICENSE.txt.
Package: pygments-lexer-ursa
Pygments lexer for Ursa programming languageReuben Thomasrrt@sc3d.orgThis is a lexer for theUrsa programming languagefor use with the syntax highlighterPygments.It is distributed under a BSD license (see LICENSE file).I hope it will one day be part of the Pygments distribution.InstallationThe easiest way to install is from PyPI, the Python Package Index:pip install pygments-lexer-ursaThis will install Pygments itself if you don’t already have it installed.UsageTo run Pygments on an Ursa file:pygmentize FILE.ursa
Package: pygments-markdown-lexer
Copyright ©  2015 Jürgen Hermann <jh@web.de>Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: pygments-mathematica
This is the most up-to-date lexer and highlighter for Mathematica/Wolfram Language source code using the pygments engine.It currently supports:All builtin functions in theSystemcontext including unicode symbols likeπexcept  those that use characters from the private unicode space (e.g.\[FormalA]).User defined symbols, including those in a context.All operators including unicode operators like∈and⊕.Comments, including multi line and nested.Strings, including multi line and escaped quotes.Patterns, slots (including named slots#nameintroduced in version 10) and slot sequences.Message names (e.g. the ivar inGeneral::ivar)Numbers including base notation (e.g.8 ^^ 23 == 19) and scientific notation  (e.g.1 *^ 3 == 1000).Local variables inBlock,WithandModule.A Sass file containing the styles can be obtained from the package repository for use in static website generators such as Jekyll, Octopress, Pelican, etc.© 2016 rsmenon
Package: pygments-michelson
Pygments Lexer for Michelson contractsA lexer class for Michelson contracts.InstallingFrom pip:# pip --user install pygments-michelson-1.0.0UsageOn the command line$pygmentizecontract.tzFrom python script to generate HTMLfrompygmentsimporthighlightfrompygments_michelsonimportMichelsonLexerfrompygments.formattersimportHtmlFormattercode='parameter unit; storage unit; code { CDR; NIL operation; PAIR };'print(highlight(code,MichelsonLexer(),HtmlFormatter()))
Package: pygments-molokai
This Python package can be used to add the Molokai colour theme to Pygments.  It was generated from theVim Molokai pluginusing theVim Colorscheme Converter.  Once installed, a Pygments style named ‘molokai’ will become available.InstallWith Pygments installed, the Molokai style can be added as follows:Using PyPI and pipThe easiest way is to use ‘pip’:$ pip install pygments-molokaiManualFor those who want to work from code, you can install the Molokai theme manually.  First make sure that Poetry is installed (seehere).  Then:$ git clone git://github.com/gbpoole/pygments-molokai.git
$ cd pygments-molokai
$ poetry installUsage examplesFrom Python:>>> from pygments.formatters import HtmlFormatter
>>> HtmlFormatter(style='molokai').style
<class 'pygments_style_molokai.MolokaiStyle'>or from the command line:pygmentize -g -O style=molokai <FILENAME>HelpMore information about Pygment styles can be found at theofficial Pygments documentationpage.
Package: pygments-openssl
OverviewThis package provides aPygmentslexer forOpenSSLconfiguration files.
The lexer is published as an entry point and Pygments will pick it up
automatically.You can use theopenssllanguage with Pygments:$ pygmentize -l openssl /etc/openssl/openssl.cnfInSphinxdocuments the lexer is selected with thehighlightdirective:.. highlight:: opensslInstallationUse your favorite installer to install pygments-openssl into the same
Python environment you have installed Pygments. For example:$ pip install pygments-opensslTo verify the installation run:$ pygmentize -L lexer | grep -i openssl
* openssl:
    OpenSSL (filenames *.cnf, *.conf)Changelog1.6 - 2023-09-14Update INI lexer tests for Pygments >= 2.14.
[stefan]Update tox.ini for latest tox.
[stefan]Add GitHub CI workflow.
[stefan]1.5 - 2022-02-27Add Python 3.8-3.10 to tox.ini. Remove old Python versions.
[stefan]Replace deprecatedpython setup.py testin tox.ini.
[stefan]Remove deprecatedtest_suitefrom setup.py.
[stefan]Move lexer intopygments_opensslnamespace.
[stefan]Move metadata to setup.cfg and add a pyproject.toml file.
[stefan]Include tests in sdist but not in wheel.
[stefan]Support new.pragmaand.includedirectives.
[stefan]Pygments 2.11 whitespace token modernization.
[stefan]1.4 - 2019-01-25Add MANIFEST.in.
[stefan]Release as wheel.
[stefan]1.3 - 2017-02-05Add a LICENSE file.
[stefan]Add a test suite and fix two minor whitespace lexing issues.
[stefan]1.2 - 2013-11-21Update documentation.
[stefan]1.1 - 2012-10-12Detect and color line continuations.
[stefan]1.0 - 2012-10-10Initial release.
[stefan]
Package: pygments-pprint-sql
Use this Pygments plugin alongside your usual SQL lexer and any output
formatter to have your SQL queries reformatted for improved readability.This filter modifies the stream of tokens that Pygments produces by
inserting whitespace at key points to make the structure of the query
more obvious.UsageFor programmatic usage, add the filter to your lexer before highlighting:from pygments import highlight, lexers, formatters
from pygments_pprint_sql import SqlFilter

lexer = lexers.MySqlLexer()
lexer.add_filter(SqlFilter())
print highlight(text, lexer, formatters.TerminalFormatter())This plugin is also compatible with the pygmentize CLI tool, via the -F option:pygmentize -F pprint-sql script.sqlNotesDDL statements like CREATE and ALTER are left unformatted because formatting
them reliably would be a significant undertaking, especially for all flavours
of SQL.I’ve done my testing with queries from an application I work on that
uses MySQL. In general it should transfer nicely to other RDBMS but I
can make no guarantees.Patches always welcome, provided they come with test cases!AlternativesSQLParseis a standalone parser and formatter package with some nice
options for customizing how formatting occurs.
Package: pygments-pre-commit
pygments-pre-commitA pygments lexer for pre-commit outputSeesome demos!
Orsee it in action on pre-commit.com.Installationpipinstallpygments-pre-commitUsageThis library provides a pygments lexer calledpre-commit...code-block::pre-commit$ pre-commit runpassing..................................................................Passedfailing..................................................................Failed- hook id: failing- exit code: 1['.pre-commit-config.yaml', 'a']skipped (no files)...................................(no files to check)Skippedskip me.................................................................SkippedThis library also provides a sphinx extension.  It can be enabled by adding'pygments_pre_commit'to theextensionssetting in yourconf.py.The colors can be tweaked using the sphinx setting (inconf.py)pygments_pre_commit_ansi_colors:pygments_pre_commit_ansi_colors={'Black':'#2e3436','Cyan':'#06989a','Green':'#4e9a06','Red':'#c00','Yellow':'#c4A000','Faint':'#ccc',}
Package: pygments-prometheus
OverviewThis package provides a prometheusmetricslanguage lexer forPygments.
THe lexer is published as an entry point and, once installed, Pygments
will pick it up automatically.You can then use thepromlangauge with Pygments:$ pygmentize -l prom metrics.promInstallationUse your favorite installer to install pygments-prometheus into the
same Python you have installed Pygments. for example:$ pip install pygments-prometheusTO verify the installation run:$ pygmentize -L lexer | grep -A1 -i prometheus
  * prometheus:
    prom (filenames *.prom)Changelog1.0 - 2018-11-08Initial release.
Package: pygments-promql
pygments-promqlA PromQL lexer for Pygments.This Python package provides aPygmentslexer for thePrometheus Query Language. It allows Pygments and other tools (Sphinx,Chroma, etc) to highlight PromQL queries.InstallationUsing pipTo get the latest version from pypi.org:pip install pygments-promqlUsageCommand-lineIn a terminal you can echo and pipe a query directly from stdin:echo 'prometheus_http_requests_total{code="200"}' | pygmentize -l promqlOr use a file, for example, create theexample.promqlfile with queries fromtests/example.promql.
In this case the option-l promqlis not needed because the lexer will be
detected based on the file extension.Showing colorized output in a terminal:pygmentize example.promqlTo generate a PNG file:pygmentize -f png -O "line_numbers=False,style=monokai" -o example.png example.promqlPython codeThe following example:frompygmentsimporthighlightfrompygments.formattersimportHtmlFormatterfrompygments_promqlimportPromQLLexerquery='http_requests_total{handler="/api/comments"}'print(highlight(query,PromQLLexer(),HtmlFormatter()))Will generate this HTML output:<divclass="highlight"><pre><span></span><spanclass="nv">http_requests_total</span><spanclass="p">{</span><spanclass="nl">handler</span><spanclass="o">=</span><spanclass="s">&quot;/api/comments&quot;</span><spanclass="p">}</span><spanclass="w"></span></pre></div>UseHtmlFormatter(noclasses=True)to include CSS inline styles on every<span>tag.SphinxIn order to highlight PromQL syntax in yourSphinx documentation siteyou just need to add this 3 lines of Python code at the end of your site'sconf.pyfile:fromsphinx.highlightingimportlexersfrompygments_promqlimportPromQLLexerlexers['promql']=PromQLLexer()Then you will be able to use it like this:Here's a PromQL example:..code-block::promql# A metric with label filteringgo_gc_duration_seconds{instance="localhost:9090"}TestingIf you want to test, play or contribute to this repo:git clone https://github.com/pabluk/pygments-promql.gitcd pygments-promql/pip install -r requirements.txtpip install -e .pytest -v
Package: pygments-pvs
Pygments PVS============Overview--------This packages provides a `Pygments`_ lexer for the `PVS`_ language. Thelexer is published as an entry point - once installed, `Pygments`_should use it automatically.You can then use the ``pvs`` lexer with `Pygments`_:$ pygmentize -l pvs mytheory.pvs.. _PVS: http://pvs.csl.sri.com/.. _Pygments: http://pygments.org/docs/Installation------------The preferred way to install pygments-pvs is by using pip. This can bedone by installing pygments-pvs from the PyPI repository, or directlyfrom the source. In both case, the commands install pygments-pvs forthe local user only - if you want to install it system-wide, simplyremove the ``--user`` flag and start the command as root (using ``su`` or``sudo``).Installing from the PyPI repository:$ pip install pygments-pvs --userInstalling directly from the git:$ git clone git://github.com/Elarnon/pygments-pvs.git$ cd pygments-pvs$ pip install . --userTo verify the installation, run$ pygmentize -L lexer | grep -i pvs* pvs:PVS (filenames *.pvs)Using in LaTeX documents------------------------See the minted package at http://minted.googlecode.com
Package: pygments-pytest
pygments-pytestA pygments lexer for pytest outputSeesome demos!  Orsee it in action on pytest.org.Installationpipinstallpygments-pytestUsageThis library provides a pygments lexer calledpytest...code-block::pytest$ pytest test.py========================== test session starts ===========================platform linux -- Python 3.6.6, pytest-4.0.1.dev43+g0d529847.d20181123, py-1.7.0, pluggy-0.8.0rootdir: /home/asottile/workspace/pytest, inifile: tox.inicollected 1 itemtest.py .                                                          [100%]======================== 1 passed in 0.01 seconds ========================This library also provides a sphinx extension.  It can be enabled by adding'pygments_pytest'to theextensionssetting in yourconf.py.The colors can be tweaked using the sphinx setting (inconf.py)pygments_pytest_ansi_colors:pygments_pytest_ansi_colors={'Cyan':'#06989a','Green':'#4e9a06','Red':'#c00','Yellow':'#c4A000',}
Package: pygments-rspec
This is an extension of Ruby lexer that just add some keywords used onRSpec,
including some keywords used withCapybaratoo.InstallUsing PyPI and pip$ (sudo) pip install pygments-rspecManual$ git clone git://github.com/hugomaiavieira/pygments-rspec.git
$ cd pygments-rspec
$ (sudo) python setup.py installUsingJust use therspec“language”.Using in LaTeX documentsSee the minted package athttp://minted.googlecode.com.Extra informationPygments supported languagesPygments at the moment supports over 150 different programming languages,
template languages and other markup languages. To see an exhaustive list of the
currently supported languages, use the command:$ pygmentize -L lexersPygments styles avaibleTo get a list of all available stylesheets, execute the following command on the
command line:$ pygmentize -L stylesPlease read theofficial documentationfor further information on the usage
of pygment styles.
Package: pygments-rzk
Pygments higlighter for RzkThis is a simplePygmentshiglighter forRzk, which can be used withmintedpackagewhen writing rzk code in LaTeX or withMkDocsto highlight code in blocks when rendering literate Rzk Markdown files.How to useInstallClone this repository, and install the highlighter usingpipinstaller:gitclonehttps://github.com/rzk-lang/pygments-rzk.gitcdpygments-rzk# enter repository rootpipinstall.# install using pipUse in MkDocsTo be done.Use in LaTeX (viaminted)In your LaTeX document:Includemintedpackage:\package{minted}Usemintedenvironment withrzklanguage, for example:\begin{frame}[fragile]\frametitle{\textsc{Rzk}highlighting in LaTeX with\texttt{minted}}A basic example:\tiny\begin{minted}[linenos,frame=leftline,mathescape]{rzk}#lang rzk-1

#section path-algebra

#variable A : U
#variables x y z : A

-- path reversal
#define rev uses (A x y)
  (p : x = y)       -- A path from x to y in A.
  : y = x           -- The reversal will be defined by path induction on p.
  := idJ(A, x,\y' p' -> y' = x, refl, y, p)

-- path composition by induction on the second path
#define concat
  (p : x = y)       -- A path from x to y in A.
  (q : y = z)       -- A path from y to z in A.
  : (x = z)
  := idJ(A, y,\z' q' -> (x = z'), p, z, q)

#end path-algebra\end{minted}\end{frame}
Package: pygments-signalflow
pygments-signalflow===================A Pygments_ syntax lexer for the SignalFx_ SignalFlow_ real-time streaminganalytics language... _Pygments: http://pygments.org.. _SignalFx: https://signalfx.com.. _SignalFlow: https://developers.signalfx.com/docs/signalflow-overviewInstallation------------.. code::$ pip install pygments-signalflowUsage-----The ``pygments-signalflow`` package is setup to include the proper entrypointsso that ``pygmentize`` can use the lexer out of the box:.. code::$ cat example.flowdata('cpu.utilization').mean().publish()$ pygmentize example.flow  # This will show in fancy colors!data('cpu.utilization').mean().publish()>From source~~~~~~~~~~~To use the lexer from source (for example with the excellent `Prompt Toolkit`_):.. _Prompt Toolkit: https://github.com/jonathanslenders/python-prompt-toolkit.. code:: pythonimport prompt_toolkitimport pygmentsimport pygments_signalflow...prompt_toolkit.shortcuts.prompt('> ',lexer=prompt_toolkit.layout.lexers.PygmensLexer(pygments_signalflow.SignalFlowLexer()))
Package: pygments-solarized-style
Using PyPI and pip$ pip install pygments-solarized-styleUsage Sample>>> from pygments.formatter import HtmlFormatter
>>> HtmlFormatter(style='solarizedlight').style
<class 'pygments_solarized_style.light.LightStyle'>
>>> HtmlFormatter(style='solarizeddark').style
<class 'pygments_solarized_style.light.DarkStyle'>Export the style as CSSpygmentize -S solarizedlight -f html > solarizedlight.css
Package: pygments-sql-pl-lexer
Pygments lexer for SQL PLSQL PL (SQL Procedural Language) is the DB2 implementation of ANSI SQL/PSM.
This module extends theSqlLexerlexer ofPygmentsto support more
keywords of SQL PL.InstallationUse the following commands to install the package:$ cd pygments-sql-pl-lexer
$ [sudo] python setup.py installCheck if the lexer is presentSimply grep the output of the following command forsqlpl.:$ pygmentize -L lexers | grep sqlplUse the lexer in LaTeXReplace <language> withsqlpl:\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
Package: pygments-style-extras
READMEPygments port of Github Color Scheme.InstallUsing PyPI and pip$ (sudo) pip install pygments-style-extrasManual$ git clone git://github.com/thecodechef/pygments-style-extras.git
$ cd pygments-style-extras
$ (sudo) python setup.py installUsage example>>> from pygments.formatters import HtmlFormatter
>>> HtmlFormatter(style='github').style
<class 'pygments_style_github.GithubStyle'>Export the style as CSS$ pygmentize -S [style] -f html -a .parent > [style].cssAvailable Stylesgithubmonokai_lightrailscastsand Many Nore on the wayGithub Example$ pygmentize -S github -f html -a .highlight > github.cssOutput:.highlight .hll { background-color: #ffffcc }
.highlight  { background: #ffffff; }
.highlight .c { color: #999988; font-style: italic } /* Comment */
...Extra informationPygments supported languagesPygments at the moment supports over 150 different programming languages,
template languages and other markup languages. To see an exhaustive list of the
currently supported languages, use the command:$ pygmentize -L lexersPygments styles avaibleTo get a list of all available stylesheets, execute the following command on the
command line:$ pygmentize -L stylesPlease read theofficial documentationfor further information on the usage
of pygment styles.