New Forum Issue: How to Enter Code?
DavidZemon
Posts: 2,973
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:
For anyone finding this in a search, here's some quick instructions: use HTML's pre tag:
- First, switch to the raw mode via the far-right button (looks like a piece of paper with "<>" in red)
- Move your cursor to the spot where you want your code.
- 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
It worked in comments, but not in the base post. See my thread;
http://forums.parallax.com/discussion/161436/bt-commander-w-whiskers-android-control-for-activitybot
Tom
Edit - Test Courier Font as code ?
renders ok, but fails to post with Body is 16337 characters too long.[/list]
Test paste as text button- fails with Body is 21593 characters too long.[/list]
Seems to be limits on plain text postings (get picture are ok?!)