How to Indent in MoHPC Forum
06-29-2014, 04:04 PM
Post: #1
 MNH Junior Member Posts: 44 Joined: May 2014
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
06-29-2014, 04:37 PM (This post was last modified: 06-29-2014 04:40 PM by Katie Wasserman.)
Post: #2
 Katie Wasserman Super Moderator Posts: 629 Joined: Dec 2013
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

06-29-2014, 05:29 PM
Post: #3
 Thomas Klemm Senior Member Posts: 1,447 Joined: Dec 2013
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?

$$[$$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
06-29-2014, 09:54 PM
Post: #4
 Katie Wasserman Super Moderator Posts: 629 Joined: Dec 2013
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

 « Next Oldest | Next Newest »

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