Shop OBEX P1 Docs P2 Docs Learn Events
New Forum Issue: How to Enter Code? — Parallax Forums

New Forum Issue: How to Enter Code?

DavidZemonDavidZemon Posts: 2,973
edited 2015-08-06 21:42 in General Discussion
The WYSIWYG editor does not offer any buttons for code entry. This will surely cause a lot of headaches in the coming days and weeks. Can a new button be added? If not, can a banner be added to the top of the forum with a link to a thread that explains how to post code?
For anyone finding this in a search, here's some quick instructions: use HTML's pre tag:
  1. First, switch to the raw mode via the far-right button (looks like a piece of paper with "<>" in red)
  2. Move your cursor to the spot where you want your code.
  3. Type <pre> to start your code block and </pre> to end your code block:
<pre>int main (int argc, char **argv) {
return 0;
}</pre>
You can also quote this response and then switch to raw mode to see exactly how I formatted this entry.

Comments

Sign In or Register to comment.