Questions tagged [pygments]

A generic source code syntax highlighter written in Python.

Pygments is a generic source code syntax highlighter, written in , with support for a wide range of common languages and markup formats. Pygments is the standard syntax highlighter used by the Jekyll blogging platform.

264 questions
5
votes
1 answer

Ruby markdown interpreter with syntax similar to GitHub Flavored Markdown?

I run a blog using Jekyll, and thought I'd settle with Redcarpet markdown interpreter as it's developed and used by GitHub. Well, I just happened to come across a bug, went to checkout the issues, and found this. Maintainer says, "As you probably…
its_me
  • 10,998
  • 25
  • 82
  • 130
5
votes
2 answers

Syntax highlighting with Markdown & Pygments in Django

I've been trying to get syntax highlighting working in my simple Django (1.1) test app using Markdown (2.0.1) & Pygments (1.0). The idea is to generate HTML from the users input which is in markdown format and store both in the DB so I don't have…
Danielb
  • 1,608
  • 5
  • 24
  • 34
4
votes
4 answers

pygments problems in jekyll

I use jekyll in github pages. http://juanpabloaj.github.com/ But, when I add the syntax.css file for pygments default.html jekyll don't show the syntax, I have set…
JuanPablo
  • 23,792
  • 39
  • 118
  • 164
4
votes
4 answers

Fix some very minor issues and rebuild sphinx but got the error "wrong color format"

I had some minimal updates in the "source" folder and rebuilt the HTML using make html command. Everything works fine and I synced the folder to GitHub. However, when I was rebuilding the doc on the Read the Docs website, I got an error like this…
Neo
  • 482
  • 5
  • 17
4
votes
1 answer

Problems with IronPython memory leaks in web application

Has anyone successfully gotten IronPython running without issues in a web environment? I am running into some issues. First issue, I am not actually running any IronPython-specific scripts, I am implementing the Pygments library so I can get…
kamranicus
  • 4,207
  • 2
  • 39
  • 57
4
votes
1 answer

Python ImportError: No module named pygments

I ran the following code # Allows the use of display() for displaying from IPython.display import display DataFrames It displayed the following error: File "/usr/lib64/python2.7/site-packages/IPython/utils/colorable.py", line 13, in
user979974
  • 883
  • 3
  • 13
  • 32
4
votes
1 answer

Converting pygments theme to gvim colorscheme

Are there any tools to convert a pygments style definition into a gvim colorscheme? I found vim2pygments, which converts vim colorschemes to pygments themes, but I haven't found anything doing the inverse. Specifically, I'm using macvim, though I…
agnoster
  • 3,744
  • 2
  • 21
  • 29
4
votes
2 answers

minted FanyVerb Error \end{minted}

I have installed MiKTeX 2.9 and Python 3.6.4 on Windows 10. The directory ..\Python36 and ..\Python36\Scripts are added to the Path Variable. I have also installed pygments via pip install pygments and I have also added -shell-escape to the…
Alexander Mayr
  • 119
  • 1
  • 7
4
votes
0 answers

What are the differences between skylighting, pygments and Linguist?

Aside from being written in haskell, python and ruby, what are the main differences between skylighting, pygments and Linguist? Do they vary widely in the language support? Do they have different internal structures? To what extent can they be used…
mpacer
  • 3,009
  • 2
  • 16
  • 15
4
votes
2 answers

How to use Pygments in Pelican with Markdown?

TLDR: I am trying to do CSS line numbering in pelican, while writing in markdown. Pygments is used indirectly and you can't pass options to it, so I can't separate the lines and there is no CSS selector for "new line". Using Markdown in Pelican, I…
AtHeartEngineer
  • 363
  • 4
  • 15
4
votes
3 answers

Can't get lexers.PythonLexer() from Kivy app built with PyInstaller

I have a Python app which works very nicely, inside of which I do something like: from pygments import lexers then... testing = lexers.PythonLexer() Just running the script works great and I get a new instance of the PythonLexer. However... when I…
Chris Rae
  • 5,627
  • 2
  • 36
  • 51
4
votes
2 answers

Syntax highlighting markdown lists

I'm using Pelican along with pygments to generate syntax highlighting for my MD documents, however, i'm having trouble applying the highlighting to indented blocks. For example: Text 1 Text 2 Code Here Text 3 The 10 space method works great for…
asaji
  • 398
  • 4
  • 12
4
votes
0 answers

How to display code-block in Plone restructuredtext content

I'm trying to support syntax highlighting in the cms Plone. The context: we are using a base Plone install. Add a document and change type from HTML to Restructuredtext then add a simple code block: .. code-block :: python from plone import…
toutpt
  • 5,145
  • 5
  • 38
  • 45
4
votes
2 answers

Highlighting with Pygmentize in Phabricator not working

I installed Phabricator for working with Python projects. Everything is ok, but files view present them, as plain text. I want to some highlighting provided by Pygmentize utility. I have installed Pygments sudo pip install Pygments Checked from…
Rustem
  • 2,884
  • 1
  • 17
  • 32
4
votes
4 answers

Rails 3.1 CKEditor gem raw text

I'm using the ckeditor gem and when I use the paste as plain text dialog it encapsulates the text in quotes as well as < p> tags and < br> tags. Is there any way I can tell ckeditor not to use any markup whatsoever when using that option. What I am…
ctilley79
  • 2,151
  • 3
  • 31
  • 64