Projects tagged ‘highlight’ and ‘python’


[7 total ]

70 Users
   

Pygments is a generic syntax highlighter for general use in all kinds of software such as forum systems, wikis or other applications that need to prettify source code.
Created over 3 years ago.

0 Users

tabi..
Created 12 months ago.

0 Users

This is a Code Blog using the Google App Engine. The goal is to make it very easy to write blog entries containing a large number of code. The code should be auto color coated. There will also be a comment system.
Created 9 months ago.

0 Users

Uses pygments in Django templatetags and models to provide syntax highlighting for many languages (including python & django). It can render at the template level both css and html portions of the ... [More] code independently. For models, it can translate a given field into a html+css version for embedding in pages. Also features many tests and an example project. [Less]
Created 12 months ago.

0 Users

This is a python weechat plugin that I'm writing to meet an irc need of mine. I prefer weechat as an irc client, but have noticed all too often that I'll leave my weechat session for an hour, a ... [More] day, or a weekend, and I will come back and have had multiple nickname highlights where other irc denizens have addressed me, yet it's difficult (and time consuming) to search each backlog looking for them - nevermind the fact that there may be multiple nick highlights in the same buffer. So the idea here is to aggregate all lines that trigger a nick highlight that occur in a channel, store them internally, and print them out by simply typing a command. Usage: Download highlights.py and place it in your ~/.weechat/python/autoload directory and restart weechat -or- place it somewhere in ~/.weechat and manually type /python load highlights.py . Once the plugin has been loaded, type /help hls to see its usage. The script can be unloaded by typing /python unload highlights Downloading: Please download the latest trunk version: http://highlightaggregator.googlecode.com/svn/trunk/highlights.py Requirements: I built this with weechat 0.2.6 and python 2.5. I can only verify that it works with these two versions of weechat and python. Happy irc'ing! --- Author Contact Info Email: "".join(['jasonwhaley','@','gmail','.','com']) IRC: whaley at irc.freenode.net in channels ##java, #python Website: blank.jasonwhaley.com [Less]
Created 12 months ago.

0 Users

#Just Another Web-based Syntax Highlighting
Created 4 months ago.

0 Users

OVERVIEWI wanted to be able to copy a snippet of source code from my text editor, convert it into color-coded HTML, and paste that into my blog. I found some Windows programs for this but I'm a Linux ... [More] user. So I wrote my own in Python. code2blog is a pyGTK front-end to Lorenzo Bettini's excellent command-line utility GNU/Source-Highlight. The goal of this utility is easy conversion of source code into HTML. It supports multiple languages and output formats. You can specify tab size and line numbering. GNU/Source Highlight supports more options than code2blog offers. I left php and php3 out of the language list because they didn't work on my system (missing language files). USAGEcode2blog uses two windows; Input and Output. Put your source in Input, get your markup from Output. Open Loads source from a text file Paste Paste from the sytem clipboard into the Input window. Clear Clears the Input Window Apply Calls GNU/Source Highlight to create the marked up version in the Output Window. All the output is also selected so you can Copy it. Save Save the Output window to a text file Copy Copies from the Output Window to the system clipboard. Clear Clear the Output Window About Show the About Dialog Quit Exit the program Let's say we're editing a program in our favorite text editor and have a snippet of code we want to blog. Copy the section to the clipboard, switch to code2blog and click Paste, Apply, Copy. Then go into your blog and paste it. For Blogger.com, use the Compose view, not the HTML view. Yes, I know that seems backwards. WARNINGThe only way to ruin a file is if you don't understand the save option. This ONLY saves the output window, i.e. the converted output from GNU/Source Highlight. Please do not save using the name of one of your source files -- code2blog is not meant to be a text a editor. REQUIREMENTSPython >= 2.4 (http://www.python.org) pyGTK >= 2.6 (http://www.pygtk.org) GNU/Source Highlight >= 2.3 (http://www.gnu.org/software/src-highlite) My Linux box with a Gnome desktop already had Python + PyGTK. My distro uses YUM and I was able to install GNU/Source Highlight with: $ su # yum install source-highlightQUICK INSTALLATION$ cd ~/bin $ wget http://code2blog.googlecode.com/svn/trunk/code2blog $ chmod +x code2blogOTHERFILESI'm including three other files for anyone that would like to modify code2blog: code2blog.py is the same thing as code2blog, except it loads the pyGTK interface from the file code2blog.glade. code2blog.glade and code2blog.gladep are the files for the Glade GUI designer (http://glade.gnome.org/). TODOI really should add a function to pick the proper source file type when loading files. CREDITSLorenzo Bettini for GNU/Source Highlight. John Finlay and the pyGTK team for pyGTK which makes this kind of thing silly easy. [Less]
Created 12 months ago.