Color coding parser for HomeSite?

Sean 'Shaleh' Perry shalehperry at
Fri Aug 30 04:22:39 CEST 2002

On Thursday 29 August 2002 17:39, Erki Esken wrote:
> > I was like 1 of the first 100 people to use HomeSite when it was
> > just one guy releasing Delphi shareware.  Oh the memories.
> Nick Bradbury is one of the best programmers around, don't you agree?
> And his new TopStyle Pro 3 is just fantastic.

I ceased following it shortly after Allaire purchased it.  Happily I no longer 
need web software.

> > What is it you need to parse exactly?
> I'm picking up Python and would love to have a *color coding* parser
> for HomeSite (actually its big brother, CFStudio) because that's my
> text editor of choice. So I'm looking if anyone has already created a
> TSyntaxMemo script for coloring Python code. Either already compiled
> .scc parser file or better yet, the source .sc file that defines what
> colors for what keywords etc to use.
> If there isn't a parser for Python out there, I'm going to write it myself.
> And that's why I also asked for sample Python scripts that use more
> exotic syntax, that would be useful when developing and testing this
> color coding parser.

Ah you are not looking for code *in* python for color parsing but for info on 
coloring python.  Happily this should not be too hard because the list of 
keywords is small.

keywords (in, for, if, else, etc)
function calls perhaps? re.match(r'(\w+)\s*\() gets close
function definitions
list comprehensions (might be more difficult)
attributes and methods of classes is a syntax highlighting editor for unix.  Perhaps its 
Python mode could help out.

More information about the Python-list mailing list