4 votes
make code comments work
tags inside of code blocks should be auto escaped
<code><embed src='"+soundUrl+"' hidden=true autostart=true loop=false></code>
tags inside of code blocks should be auto escaped
<code><embed src='"+soundUrl+"' hidden=true autostart=true loop=false></code>
phyzome
Since comments are editable, it's not hard for people to use trial-and-error and get it right. I'd only go with bbCode if commenting is a one-shot deal.
Here's an alternative: Provide a "paste some code!" button that gives the user a textarea in which to... paste some code. When they hit "paste", it escapes the HTML, wraps it in <pre> or <code>, and pastes it into the comment area.
4 months ago
Mikado
Disagree. Tags could be used inside code blocks to highlight specific parts. On the other hand, auto-escaping unneeded code isn't much hassle to implement for scriptwriters themselves. But if you want to make comments system more friendly to unexperienced user, you need bbCode instead of HTML - this will solve all problems at once.
5 months ago
anotherjesse
also http://userscripts.org/forums/1/topics/1334
5 months ago
anotherjesse
see for example http://userscripts.org/scripts/show/13765?page=3
5 months ago