code tag issues

  • 0
  • 5
  • Idea
  • Updated 11 months ago
I like the code tag and I use it often. But it needs a tune-up. Everything in between [code] and the next [/code] I would expect to be unformatted and unmodified monospace.

For starters, you can't post [code]<script> . Saying "javascript is not allowed" on a feature that's there for people to display plaintext code is sort of self-defeating.

Secondly the following posts will come out looking really odd on the desktop app:

[code]$"[/code]

[code]"a@example.com"[/code]("support-email" "b@example.com")

[code] %2b (I get why, but could you not do this?)

Finally on mobile, the formatting is worse. It will insert emojis and links into the text for example. Overall the use of the code tag seems quite different between desktop and mobile.

Thanks
Kyle
Photo of kmcgivney

kmcgivney

  • 192 Points 100 badge 2x thumb

Posted 11 months ago

  • 0
  • 5
Photo of Rob LaRose

Rob LaRose

  • 2,292 Points 2k badge 2x thumb
Agreed, code tagging is a weak spot.