powered by UserVoice

make code comments work

4 votes
Vote
for

make code comments work

tags inside of code blocks should be auto escaped

<code><embed src='"+soundUrl+"' hidden=true autostart=true loop=false></code>

  1. Voting Trends (last 60 days)
Sparkline Graph
  1. Comments
  1. Default-avatar

    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.

  2. Default-avatar

    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.

  3. 3 Default-avatar
    Admin
  4. 3 Default-avatar
    Admin

Login to leave a comment

powered by UserVoice