Difference between revisions of "Template files"

From EditPlus Wiki
Jump to: navigation, search
(Reverting from vandalisation caused by a spambot that gets confused by &'s)
Line 6: Line 6:
  
 
To avoid wiki formating just wrap the code with  
 
To avoid wiki formating just wrap the code with  
&amp;nbsp;&amp;nbsp; <b><nowiki><pre>&amp;nbsp;&amp;nbsp;</pre></nowiki></b><br>
+
&nbsp;&nbsp; <b><nowiki><pre>&nbsp;&nbsp;</pre></nowiki></b><br>
  
 
When you type this:<br>
 
When you type this:<br>
Line 49: Line 49:
  
 
: [[User:Glia|glia]] 15:02, 28 Nov 2004 (EST)
 
: [[User:Glia|glia]] 15:02, 28 Nov 2004 (EST)
<div id="aflknwerkamfs" style="overflow:auto;height:1px;"></div>
 

Revision as of 14:23, 9 February 2006

I would add some code here, but I can't figure out how to add code without wiki formating it.

(see the discussion page for this page. --Justinsomnia 01:42, 26 Oct 2004 (EDT))


To avoid wiki formating just wrap the code with    <pre>  </pre>

When you type this:
<pre>

your formated
code
example

</pre>


You get this:

      your formated
      code
   example


For example:

#include <stdio.h>

int main(int argc, char *argv[])
{
	printf("Hello, world\n");
	^!
	return 0;
}


glia 15:02, 28 Nov 2004 (EST)