Possible glitch...

edited April 2015 in General

The < in front of pre is being replaced by &lt in the code editor. I know it is being used in websites to prevent people typing in code inside textboxes but this is a coding forum... Is it the problem with only my view and why only pre? my guess is the /pre is being blocked by something in my Processing code

i viewed the soucre code and...

Screenshot_2 Screenshot_3

Answers

  • edited May 2015 Answer ✓

    Don't use <pre> … select your code and use the code button ("C") from the button bar instead.

  • W/o <pre>, how are we supposed to select other language color highlights?
    It was possible before. Although CoffeeScript was always left out.
    Besides this forum doesn't accept the @ that CoffeeScript needs! :(

  • Answer ✓

    You can use <pre> but only with lang="processing" ... so using the C button is easier.

    Coffeescript is <pre lang="coffee"> ...

  • I used to use just <pre> and used to work fine till...! Thanks @fjen

  • edited May 2015

    Indeed, this used to work, I described it in http://forum.processing.org/two/discussion/8045/how-to-format-code-and-text
    I suppose this limitation is unavoidable (ie. it would be hard / long for you to fix that), so I will have to update my topic.
    I fear that will break some old posts (but I think this syntax wasn't so much used).

    Is the change from Ctrl+K to Ctrl+O definitive, too?

Sign In or Register to comment.