Skip to content

FlexPDE syntax highlighting definitions for "listings"

License

Notifications You must be signed in to change notification settings

mgrojo/listings-flexpde

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

listings-flexpde

This project provides syntax highlighting definitions of the FlexPDE language for the LaTeX listings package.

Usage

Copy or link the file flexpde-listings.cfg into your LaTeX project and include it in your main project file.

E.g.:

\usepackage{listings}
\input{listings-flexpde.cfg}

The flexpde flexpde-listings.cfg file also provides to new commands, \code and \flexpde, in order to inline code examples without and with Flexpde syntax highlighting, respectively.

By default no background colour is set for the listing. But the appearance can be modified for example by doing:

\usepackage{listings}
\input{listings-flexpde.cfg}
\lstset{language = flexpde,
        basicstyle=\fontsize{9pt}{10.5pt}\ttfamily,
        backgroundcolor = \color{green}}

License

© Copyright 2024 Manuel (mgrojo)

Based on previous work for the Modelica language by:

© Copyright 2014 Martin Sjölund, Dietmar Winkler

This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 of this license or (at your option) any later version. The latest version of this license is in http://www.latex-project.org/lppl.txt and version 1.3 or later is part of all distributions of LaTeX version 2005/12/01 or later.

Contributions

See list of contributors.

The list of keywords is probably incomplete. This has been done only to scratch my own itch, so Issues or pull request are always welcome.

About

FlexPDE syntax highlighting definitions for "listings"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published