nayosx / snippely

Automatically exported from code.google.com/p/snippely
0 stars 0 forks source link

Syntax highlighting for Python #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Feature request: syntax highlighting for Python

Original issue reported on code.google.com by ch.zwerschke@gmail.com on 17 Sep 2009 at 4:40

GoogleCodeExporter commented 9 years ago
I wrote a first pass at syntax highlighting for Python. 
The main "paintbrush.python.js" file is attached. I also added:

<script type="text/javascript" 
src="scripts/paintbrush/paintbrush.python.js"></script>

to "application.html" and

doubleOrTripleQuotedString: (/("""[^"]*""")|("(?:\.|(\\\")|[^\""\n])*")/gm),

on line 121 of "paintbrush.js". Still missing a couple of details, but it works 
well
for me.

Original comment by odwyerrob on 7 Apr 2010 at 5:38

Attachments: