How To Display Code as Text??

Posted 3 years, 2 months ago by allynabean

Hi!! I can't seem to figure out how to display code as a copy/pasteable text box, like this code here has!

Im sure theres a code or tag I need to put on it but I'm not sure what it is, and my googling so far hasn't come up with any results that work.

thank you!!

sardiine

it's the <pre> and <code> tag ^^ (used in that succession)

you can also change the style of the pre class to style="user-select:all;" so it selects all of the code in one click

allynabean

sardiine aahh it just does thiswhen i do that?? im not sure what i've done wrong :0

allynabean

sardiine aaa i have everything within both codes, and WYSIWYG and code editor are off and on respectively ;;

allynabean

fri-tz OH THAT WORKED TYSMM!!

Lilium099

fri-tz

Could you show an example?  I tried it myself, but it didn't work

Lilium099

fri-tz

Ohhhh, I see. Thank you