Difference between revisions of "Template files"

From EditPlus Wiki
Jump to: navigation, search
(Tip to avoid wiki formating with pre-fromated source code)
m
Line 6: Line 6:
  
 
To avoid wiki formating just wrap the code with  
 
To avoid wiki formating just wrap the code with  
&nbsp;&nbsp; <b><nowiki><pre>&nbsp;&nbsp;</pre></nowiki></b>:<br>
+
&nbsp;&nbsp; <b><nowiki><pre>&nbsp;&nbsp;</pre></nowiki></b><br>
  
<nowiki><pre></nowiki><br>
+
When you type this:<br>
: <b>formated</b>
+
<!-- NB: this is not the real code, please use the ACTUAL CODE below -->
 +
<b><nowiki><pre></nowiki></b><br>
 +
:<b>your formated</b>
 
::  <b>code</b>
 
::  <b>code</b>
 
: <b>example</b>
 
: <b>example</b>
<nowiki></pre></nowiki>
+
<b><nowiki></pre></nowiki></b>
  
<b>
 
  
<!-- BEGIN the actual template for insert pre-formated code -->
+
You get this:
 +
<b>
 +
<!-- BEGIN the ACTUAL TEMPLATE for insert pre-formated code -->
 
<pre>
 
<pre>
 +
      your formated
 +
      code
 +
  example
 +
</pre>
 +
<!-- END of the ACTUAL TEMPLATE template for insert pre-formated code -->
 +
</b>
  
 +
 +
For esample:
 +
<b>
 +
<!-- BEGIN Example -->
 +
<pre>
 
#include <stdio.h>
 
#include <stdio.h>
  
Line 27: Line 41:
 
return 0;
 
return 0;
 
}
 
}
 
 
</pre>
 
</pre>
<!-- END the actual template for insert pre-formated code -->
+
<!-- END Example -->
 
+
 
</b>
 
</b>
 +
 
: [[User:Glia|glia]] 15:02, 28 Nov 2004 (EST)
 
: [[User:Glia|glia]] 15:02, 28 Nov 2004 (EST)

Revision as of 22:36, 12 December 2004

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 esample:

#include <stdio.h>

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

glia 15:02, 28 Nov 2004 (EST)