473,657 Members | 2,604 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Syntax Highlighting Module

Hello,
I have an idea for a project which involves an editor that supports
syntax highlighting. This would be for any language, particularly php,
html, css, etc. I would like to write this program using python. It
would only make sense to base this upon existing open source code. My
question is there a python module or examples on how to write a code
editor which supports modulated syntax highlighting?

Thank you,
Blaine

Aug 21 '06 #1
4 2679
fr*****@gmail.c om wrote:
Hello,
I have an idea for a project which involves an editor that supports
syntax highlighting. This would be for any language, particularly php,
html, css, etc. I would like to write this program using python. It
would only make sense to base this upon existing open source code. My
question is there a python module or examples on how to write a code
editor which supports modulated syntax highlighting?
Google: SilverCity

Cheers,
Brian
Aug 21 '06 #2

fr*****@gmail.c om wrote:
Hello,
I have an idea for a project which involves an editor that supports
syntax highlighting. This would be for any language, particularly php,
html, css, etc. I would like to write this program using python. It
would only make sense to base this upon existing open source code. My
question is there a python module or examples on how to write a code
editor which supports modulated syntax highlighting?

Thank you,
Blaine
just a *few* examples

http://lfw.org/python/cedit

http://mathieu.fenniak.net/formattin...ion-in-python/
http://aspn.activestate.com/ASPN/Coo.../Recipe/200638
http://aspn.activestate.com/ASPN/Coo.../Recipe/442482

http://effbot.python-hosting.com/bro...box/pythondoc/

http://qbnz.com/highlighter/index.php
http://pudge.lesscode.org/

also look at GNU / emacs:

http://fly.srk.fer.hr/~hniksic/emacs/htmlize.el.html
http://aspn.activestate.com/ASPN/Coo...n/Recipe/52298

http://www.danbala.com/python/lpy/lpy.py.html
http://www.gnu.org/software/src-highlite/

Aug 21 '06 #3
thank you! These will be very helpful.

I'm not necessarily creating an editor from scratch, but maybe an
editor that has some additional custom functionality.

Thanks again,
blaine
gene tani wrote:
fr*****@gmail.c om wrote:
Hello,
I have an idea for a project which involves an editor that supports
syntax highlighting. This would be for any language, particularly php,
html, css, etc. I would like to write this program using python. It
would only make sense to base this upon existing open source code. My
question is there a python module or examples on how to write a code
editor which supports modulated syntax highlighting?

Thank you,
Blaine

just a *few* examples

http://lfw.org/python/cedit

http://mathieu.fenniak.net/formattin...ion-in-python/
http://aspn.activestate.com/ASPN/Coo.../Recipe/200638
http://aspn.activestate.com/ASPN/Coo.../Recipe/442482

http://effbot.python-hosting.com/bro...box/pythondoc/

http://qbnz.com/highlighter/index.php
http://pudge.lesscode.org/

also look at GNU / emacs:

http://fly.srk.fer.hr/~hniksic/emacs/htmlize.el.html
http://aspn.activestate.com/ASPN/Coo...n/Recipe/52298

http://www.danbala.com/python/lpy/lpy.py.html
http://www.gnu.org/software/src-highlite/
Aug 24 '06 #4
On Mon, 2006-08-21 at 08:19 -0700, gene tani wrote:
fr*****@gmail.c om wrote:
Hello,
I have an idea for a project which involves an editor that supports
syntax highlighting. This would be for any language, particularly php,
html, css, etc. I would like to write this program using python. It
would only make sense to base this upon existing open source code. My
question is there a python module or examples on how to write a code
editor which supports modulated syntax highlighting?

Thank you,
Blaine

just a *few* examples
If I were to start a GUI editor project, I'd undoubtedly start by
looking at Scintilla:

http://www.scintilla.org/

Also see:
http://scintilla.sourceforge.net/ScintillaRelated.html

Regards,
Cliff
--

Aug 24 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
97188
by: dmbkiwi | last post by:
I am new to this group, and relatively new to python programming, however, have encountered a problem I just cannot solve through reading the documentation, and searching this group on google. I have written a theme in python for the superkaramba theme engine on kde (see http://netdragon.sourceforge.net - if you are a kde/linux user, it is a great visual applet engine). I have uploaded it to www.kdelook.org for others to download and...
8
3854
by: Bo Peng | last post by:
Dear list, I am writing a Python extension module that needs a way to expose pieces of a big C array to python. Currently, I am using NumPy like the following: PyObject* res = PyArray_FromDimsAndData(1, int*dim, PyArray_DOUBLE, char*buf); Users will get a Numeric Array object and can change its values (and actually change the underlying C array).
43
2658
by: Mladen Adamovic | last post by:
Hi! I wonder which editor or IDE you can recommend me for writing Python programs. I tried with jEdit but it isn't perfect.
12
2821
by: Thomas Bartkus | last post by:
Does anyone use emacs together with both WordStar key bindings and python mode? I'm afraid that Wordstar editing key commands are burned R/O into my knuckles! I would like to play with emacs for Python editing but I'm having (2) problems. 1) When I load a .py file, emacs automatically overrides my wordstar-mode with python-mode, forcing all the keybindings back to emacs native keys. Why?
8
334
by: Jason Jiang | last post by:
Hi, Could someone recommend a good Python editor? Thanks. Jason
29
2348
by: dbhbarton | last post by:
Had a thought that's grown on me. No idea if it's original or not- too inexperienced in programming- but I guess there's no harm floating it out there. Python wins big on readability, and there's no doubt that context- dependent text formatting in IDEs (keywords, strings, comments etc) is a massive help too, therefore benefitting development and maintenance. This idea is in a similar vein, especially for when scripts grow large.
0
8303
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8821
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8723
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8502
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8602
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1941
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.