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
0
votes
2 answers

Line numbers in Pygments code highlight in xampp on Windows

I have configured xampp on windows to work with python 2.7 and Pygments. My php code is highlighted properly in Pygments on the website. The code has colors, span elements, classes. That is how it looks: But I cannot get line numbers. As I have…
trzczy
  • 1,325
  • 2
  • 18
  • 43
0
votes
1 answer

can't find pygments.lexers.BashLexer

I'm trying to use jupyter nbconvert example.ipynb --to slides to generate a jsreveal slideshow from an ipython notebook, but I keep getting an error from lexers.py: File "/usr/local/lib/python2.7/dist-packages/IPython/lib/lexers.py", line 37, in…
sean read
  • 305
  • 3
  • 14
0
votes
1 answer

Getting Pygments dependency error when trying to compile Jekyll site

I'm beginning to set up a Jekyll site and I've installed everything and copied the contents of this theme into the site's directory. I've installed Pygments via the gem install pygments.rb command and it seemed to install fine. But I'm still getting…
intA
  • 2,513
  • 12
  • 41
  • 66
0
votes
1 answer

CSS styling of pygments HTML

I used the Python library pygments to pygmentized some code to put it on a website I created. I've seen many websites displaying code, but when the code contains a long line, the overflow is simply hidden. I dislike it being hidden and want to make…
Zelphir Kaltstahl
  • 5,722
  • 10
  • 57
  • 86
0
votes
0 answers

pygmentize Not Found error while installing phabricator

I am not able to find a solution to this error ..googling didn't help as it returned some github links can anyone help as there are not many post explaining this issue
nik6018
  • 11
  • 4
0
votes
1 answer

How is syntaxhighlighters.py called by Spyder IDE?

For Spyder IDE, is syntaxhighlighters.py compiled into spyder.exe, or is it called directly from spyderlib? I see on GitHub (https://github.com/spyder-ide/spyder/blob/master/spyderlib/utils/syntaxhighlighters.py) and several other sites that…
0
votes
1 answer

How to use pygments syntaxhighlier in mailchimp

Mailchimp used my feed and send latest post in mail. I am using pygments highlighter with jekyll so it writes {% highlight bash %} some code here {% endhighlight %} in feed.xml and also while sending in email it does not convert this to…
Sandeep Bhardwaj
  • 1,310
  • 1
  • 18
  • 24
0
votes
0 answers

Show extra info of code snippet in jekyll pygments

Jekyll, pygments, I want to show the detail info about some code snippet: file name, related links, just as this: {% highlight [language] [linenos] ["title"] [links] %} .... code snippet .... {% endhighlight %} How can I achieve this? The ruby…
kenmux
  • 151
  • 1
  • 10
0
votes
1 answer

Sublime & Highlight: pasting as RTF fontsize issue

I downloaded a package named SublimeHighlight for the Sublime text editor. It serves as my solution to paste syntax highlighted code into Evernote. I have both Evernote and Sublime using the Menlo mono-spaced font. I select text in Sublime, right…
The Qodesmith
  • 3,205
  • 4
  • 32
  • 45
0
votes
1 answer

Pygments import Lex error

I tried to import lex using this code: from pygments import lex but it only returned an error: Traceback (most recent call last): File "D:\samp.py", line 1, in from pygments import lex File…
Ako Cruz
  • 343
  • 1
  • 2
  • 12
0
votes
0 answers

Jekyll and pygments using nasm

I'm trying to get my nasm syntax highlighted in Jekyll using pygments. It works flawlessly for C and Python, but nasm doesn't seem to work. ```nasm section .text global _start _start: xor ecx, ecx mov al,15 ; changed push…
Lucas Kauffman
  • 6,789
  • 15
  • 60
  • 86
0
votes
1 answer

Jekyll blog highligth code produce invalid html

Using Jekyll, I have this file: #_posts/2015-06-20-post.textile blablabla: {% highlight bash %} $ ruby example_blocks_1.rb [0, 2, 4, 6] hello world hello world hello world hello world hello world hello world {% endhighlight %} bla bla bla this…
user1066183
  • 2,444
  • 4
  • 28
  • 57
0
votes
1 answer

Pygments isn't loaded in trac

I've installed Pygments on a TRAC server, but after restarting the TRAC service, Pygments isn't loaded. After restarting the TRAC service, the log file looks like this: 2015-03-07 20:34:52,496 Trac[loader] DEBUG: Loading trac.mimeview.patch from…
Rolf
  • 3
  • 1
0
votes
1 answer

trac syntax highlitings on comments

I installed pygments on my trac server. but the code is without colours on the ticket comments. this is what i have on trac.ini : [mimeviewer] max_preview_size = 262144 mime_map = text/x-dylan:dylan,text/x-idl:ice,text/x-ada:ads:adb,text/x- …
0
votes
1 answer

How to create new code highlight style in rouge

I want to post my code on my Jekyll site highlight the code. I had successfully install rouge. Is there a easy way if I want to create style on my own? How can I install other's styles? And do you have something pretty style to recommend?
Peter Zhu
  • 1,154
  • 3
  • 15
  • 27