How to show code in postings
How to show code:
If you post something, above the edit field you can find many formatting symbols like:
"B" for
bold
"I" for
italic
and so on. One of the last ones is the "#" for formatting your code.
So enter or copy&paste your code into your posting, select all the pasted code, and press "#".
Example:
1. Enter some code:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dim i As Int 'This is a comment
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2. Select the whole code:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dim i As Int 'This is a comment <-- Selected text (normaly white on dark)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(Best with mouse)
3. Press "#":
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ CODE]Dim i As Int 'This is a comment[ /CODE]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The "brackets" are the CODE-Tags in "[" and "]".
4. After sending your posting:
Dim i As Int 'This is a comment
5. Voila!