User Tools

Site Tools


format_code

resource

Often time, you will need to post a code here to for share. Here is how you can do it.

<code lang | title> some code </code>

Here is an example.

| code.py
def function(){
   print "hello, world!"
}

Here is the source line:

<code python | code.py> def function(){ print "hello, world!" } </code>

If you want to disable the download, <code lang> some code </code>

def function2(){
   print "hello, python!"
}

Here is the source line:

<code python> def function2(){ print "hello, python!" } </code>

For a very simple commend, try ''code piece''.

The advantage of using this is that you can include it in the sentence.

format_code.txt · Last modified: 2016/09/25 22:18 (external edit)