I hilights PIC assembler very nicely. A lisp script that uses regexp to search for the escape characters would be easy to write. I'm not sure how to do the hilighting. I guess if I looked at the code that hilights in emacs I could figure out how it detects the words to hilight, copy that, and have it add color tags. Right now I'm just using a simple perl command to replace the escape characters, then tagging it with
. No colors, but it works. cheers, ian William Chops Westfield wrote: > On Dec 7, 2004, at 12:59 PM, Lucas Thompson wrote: > >> I'm wondering if anyone knows some simple scripts for linux to reformat >> PIC .asm files into html with indentation and maybe even color >> hilighting. > > > I would think it would be relatively easy to implement this as part > of the "listing" function of one of the open-source assemblers. > >> It would be super cool if it was an addon >> for emacs, ie "M-X make-this-html". I suppose I could write one. > > > Emacs already has syntax highlighting, even for assembler (I don't know > if there's a version customized for PIC assembler.) Does it have any > ability to output the highlighted version ? > > BillW > _______________________________________________ > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist _______________________________________________ http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist