Re: Syntax Highlighted Examples
| From: | Jakub Vrana | Date: | Sun, 21 Dec 2003 21:58:24 +0000 |
| Subject: | Re: Syntax Highlighted Examples | ||
| References: | 1 2 3 4 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969357650@lists.php.net to get a copy of this message | ||
> agreed, just wanted to point it out regardless, just in case. Another
> thing i've seen is that syntax highlighting in user notes has made
> almost all notes containing code fubar. People just won't stick proper
> code in them. I hate to say it, but there needs to be something like
> [php][/php] for code examples in notes. Most cases of the notes being
> fubar are caused by people leaving quotes unquoted (no ending
> quotation), and neglecting the ending ?> tag.
I have also noticed it. I have started to write a script to add
missing tags around the blocks of a code. Despite I tried couple of
approaches I realized that it's hardly possible to made it fully
automatic (mainly because of syntax errors and misspells). I think it
will be nice to add this tag-guessing to preview in submitting note.
It will be also nice to add missing tags to current notes and I'm a
volunteer for it. But before it, it will be nice to delete or reject
some of 8577 existing notes.
Jakub Vrana