format_code
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
format_code [2016/08/29 10:37] – admin | format_code [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
Often time, you will need to post a code here to for share. Here is how you can do it. | Often time, you will need to post a code here to for share. Here is how you can do it. | ||
+ | |||
'' | '' | ||
- | |||
Here is an example. | Here is an example. | ||
+ | |||
<code python | code.py> | <code python | code.py> | ||
def function(){ | def function(){ | ||
- | print " | + | print " |
} | } | ||
- | |||
</ | </ | ||
+ | |||
+ | Here is the source line: | ||
+ | |||
+ | '' | ||
+ | def function(){ | ||
+ | print " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | If you want to disable the download, | ||
+ | '' | ||
+ | |||
+ | |||
+ | <code python> | ||
+ | def function2(){ | ||
+ | print " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Here is the source line: | ||
+ | |||
+ | '' | ||
+ | def function2(){ | ||
+ | print " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | For a very simple commend, try '' | ||
+ | |||
+ | The advantage of using this is that you can include it in the sentence. | ||
format_code.1472481439.txt.gz · Last modified: 2016/08/29 09:37 (external edit)