]> git.lyx.org Git - lyx.git/commit
Account for old versions of Pygments
authorEnrico Forestieri <forenr@lyx.org>
Mon, 26 Jun 2017 21:23:23 +0000 (23:23 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 26 Jun 2017 21:23:23 +0000 (23:23 +0200)
commit28be7d552f62cc02fa86d7f79201d089bfb2d7b5
tree7d17447c6bcc1da4d5edc9a5eafd0c64cdc631e2
parentd87513a94dd31e22d1b1bc04e9fddcc8ddcc634a
Account for old versions of Pygments

Pygments versions prior to 2.0 only accept lower case names for lexers.
This commit makes sure to always use lower case names for the language
that is written in the LaTeX file, while retaining the proper casing
for the presentation in the GUI, which is dictated by compatibility
with the listings package. Moreover, if one switches from listings
to minted in a document, the language combo is properly updated even
if the used language had attached a dialect (a concept not shared by
minted), or even when importing a LaTeX document with tex2lyx.
src/insets/InsetInclude.cpp
src/insets/InsetListings.cpp
src/insets/InsetListingsParams.cpp
src/insets/InsetListingsParams.h