Re: help with programming an editor

From: Samuel Walters (swalters_usenet_at_yahoo.com)
Date: 01/13/04


Date: Tue, 13 Jan 2004 22:02:33 GMT


|Thus Spake Otto Wyss On the now historical date of Tue, 13 Jan 2004
22:33:58 +0100|

> You might look at "http://www.scintilla.org/"

Gotta love the spiffy little scintilla widget. I've been trying to design
my editor so that someone could come along and add in a GUI. I'm
considering doing it myself so that people who might help me will use the
scintilla widget and contribute back towards it.

This brings an interesting point about Opensource. Your choice of tools
and libraries affects not only you, but the projects you use. For
instance, for the past couple of days, I've been writing a utility that
builds syntax-highlighted webpages from code and cross-references them
with ctags. It will read in source files, VIM syntax files and VIM
colorschemes. In this way, if someone notices a problem or comes up with
an enhancement for a particular color coding, then their fix is not only a
bonus for my project, but a bonus for VIM and ctags. Plus, there is a
huge library of syntax parsers and colorschemes already available, so
noone is reinventing the wheel. I still get the joy and experience of
having written such a tool, without the grunt-work of building a whole set
of colorizations and parsing schemes.

Sam Walters.

P.S. I do know about code2html, but it doesn't encode several of the
languages I want to use and not being a perl-hacker, I decided it would be
easiest and best to write one from scratch. I'm also not just focused on
code and html, but trying to make my solution general enough that it could
be used to generate multiple kinds of markups from multiple kinds of data.

-- 
Never forget the halloween documents.
http://www.opensource.org/halloween/
""" Where will Microsoft try to drag you today?
    Do you really want to go there?"""


Relevant Pages

  • Re: A better syntax highlighting color scheme for Ruby code on Vim?
    ... Vim in Ruby! ... Vim also has good syntax-highlighting support. ... color scheme applied through the syntax highlighting sucks. ...
    (comp.lang.ruby)
  • Re: (G)Vim Oddity
    ... >>> syntax highlighting colors appear wrong. ... > 1) what version ov vim? ... custom udev rules. ...
    (Debian-User)
  • Re: (G)Vim Oddity
    ... The syntax highlighting ... but I do not know much about gvim highlighting so I ... > " Use Vim settings, rather then Vi settings. ... > " Also load indent files, ...
    (Debian-User)
  • Re: editor with syntax highlighting
    ... > Does anyone know of a good editor for cobol source that supports syntax ... > I've tried vim, but have encountered several issues with it: ... the vim COBOL syntax support. ...
    (comp.lang.cobol)