Abel Tamayo schrieb:
>  but others like support for snippets I don't even know what that 
> means. Also, I couldn't find better icons for foreground and 
> background colors; I thought those were OK.
Okay, I write together a "usecase", more details hopefully coming later.

I want to write a post on my blog containing a few code snippets. 
Something about jQuery. So I start with a few paragraphs of text, maybe 
adding a bit bold text here and there, or a few subheadlines. Now comes 
the first HTML snippet I want to present. I copy a bit of HTML from a 
demo page, and insert it as escaped HTML into the page. Here the editor 
has to present a one- or two-click approach of inserting this: 
<pre><code class="html">(pasted, escaped html)</code></pre>.
A few lines later I want to insert a bit JavaScript, no escaping 
neccessary, but I want to have the correct pre/code tags around it: 
<pre><code class="javascript">(pasted js)<code></pre>.
Another few lines later I have some inline Javascript, somewhere in a 
sentence: <code class="javascript">(pasted js)</code>.

I wouldn't mind configuring support for JS and other languages I'd like 
to use, but at least the HTML support with escaping must be built-in.

The actualy syntax-highlighting on the code elements (according to the 
given class) is done by the excellent Chili plugin 
(http://www.mondotondo.com/aercolino/noteslog/?cat=8).

-- 
Jörn Zaefferer

http://bassistance.de


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to