Toggle line numbers in code snippets RRS feed

  • General discussion

  • It would be nice if we could toggle line numbers in code snippets in a post. I don't mean for the post author specifying this and having it hard-coded into the formatting of the post, I want the users browsing the forum to be able to toggle line numbers at their will.

    The problem at the moment is a post author can post a code snippet with line numbers on (i.e. hard-coded in the post), then users have no choice but to copy the code with line numbers in.

    I suggest you have a link to toggle them on/off at the users discretion, like some wiki software's do. E.g. see here:
    Wednesday, May 28, 2008 6:54 AM