Difference between revisions of "User:Kbjarkefur"

Jump to: navigation, search
Line 13: Line 13:
== Code snippet example ==  
== Code snippet example ==  


This part is using the regular<nowiki> <code></nowiki> tag:
This part is using the regular <nowiki><code></nowiki> tag which is great when writing code in the middle of a sentence:


'''Ex.1''' You should use ''egen'' function <code>rowtotal()</code> when aggregating variables.
'''Ex.1''' Use the 'egen' function <code>rowtotal()</code> when aggregating variables.
 
However, the <nowiki> <code></nowiki> tag is not great when writing multiple lines of code:
 
'''Ex.1'''
<code>foreach thing in space coding wrestling {
  display "I like `thing'"
}</code>

Revision as of 21:04, 26 October 2017

About me

Pages on this wiki I frequently need:

Code snippet example

This part is using the regular <code> tag which is great when writing code in the middle of a sentence:

Ex.1 Use the 'egen' function rowtotal() when aggregating variables.

However, the <code> tag is not great when writing multiple lines of code:

Ex.1 foreach thing in space coding wrestling {

  display "I like `thing'"

}