Re: Displaying code as html
- From: mr_unreliable <kindlyReplyToNewsgroup@xxxxxxxxxxx>
- Date: Tue, 03 Apr 2007 22:01:08 -0400
hi Robert,
If you don't mind using a 3rd-party control (Nathan's) Code Max
will do the job.
http://www.download.com/CodeMax/3000-2352_4-10284778.html
Code Max has been used by several "syntax-highlighting" editors,
i.e., it is the part of the editor that does the syntax-
hightlighting.
This approach differs from those proposed above. In those cases,
you create a "fixed" html, and then display it.
With Code Max, you give it code, and you get a colorized rendering
of the code "on-the-fly". That is, there is no html, other than
the page used to host the codemax control. The control displays
the syntax-highlighted code that you give it.
For a more modern version of pretty-much the same thing, take a
look at "scintilla":
http://scintilla.sourceforge.net/index.html
Scintilla is the basis for SCiTE, another syntax-highlighting
code editor, much preferred by our friends over at AutoIt.
cheers, jw
____________________________________________________________
You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)
Robert wrote:
Does anyone know of a tool / freeware / code theyve written to parse a piece of VBScript and format it as HTML. I would like to output code snippets onto a web site / blog that is correctly formatted and with the right colours..
If someone has an xsl *** or some other method of doing this it would save me a lot of time.
- Prev by Date: Re: Creating vbscript to delete cookies and temporary internet files
- Next by Date: Re: Determine if a file is open
- Previous by thread: Re: Displaying code as html
- Next by thread: Functionality Question
- Index(es):