Post Reply 
How to Indent in MoHPC Forum
06-29-2014, 04:04 PM
Post: #1
How to Indent in MoHPC Forum
Hello,

I normally compose my posts on Notepad. My formatting is lost when I post. I noticed the # (insert formatted code) symbol on the above toolbar. Do I wrap my code in # symbols before or after I post?

Regards,

Mark
Find all posts by this user
Quote this message in a reply
06-29-2014, 04:37 PM (This post was last modified: 06-29-2014 04:40 PM by Katie Wasserman.)
Post: #2
RE: How to Indent in MoHPC Forum
(06-29-2014 04:04 PM)MNH Wrote:  Hello,

I normally compose my posts on Notepad. My formatting is lost when I post. I noticed the # (insert formatted code) symbol on the above toolbar. Do I wrap my code in # symbols before or after I post?

Regards,

Mark

Click on # at the start of your code block, enter your code, then click on # again to close your code block. Alternatively, you can enter your code block, then select all the text in it, then click on # just once.

-katie

Visit this user's website Find all posts by this user
Quote this message in a reply
06-29-2014, 05:29 PM
Post: #3
RE: How to Indent in MoHPC Forum
(06-29-2014 04:04 PM)MNH Wrote:  Do I wrap my code in # symbols before or after I post?
No. Use a code-tag instead:

\([\)code\(]\)def gcd(a, b):
    return a if b == 0 else gcd(b, a % b)
[/code]


This results in:
Code:
def gcd(a, b):
    return a if b == 0 else gcd(b, a % b)

Cheers
Thomas
Find all posts by this user
Quote this message in a reply
06-29-2014, 09:54 PM
Post: #4
RE: How to Indent in MoHPC Forum
(06-29-2014 05:29 PM)Thomas Klemm Wrote:  No. Use a code-tag instead:

The # button is just inserts the code-tags, you can watch as it does this.

-katie

Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)