Difference between revisions of "Template files"

From EditPlus Wiki
Jump to: navigation, search
m
(Tip to avoid wiki formating with pre-fromated source code)
Line 2: Line 2:
  
 
(see the [http://www.editplus.info/index.php/Talk:Templates discussion page] for this page. --[[User:Justinsomnia|Justinsomnia]] 01:42, 26 Oct 2004 (EDT))
 
(see the [http://www.editplus.info/index.php/Talk:Templates discussion page] for this page. --[[User:Justinsomnia|Justinsomnia]] 01:42, 26 Oct 2004 (EDT))
 +
 +
----
 +
 +
To avoid wiki formating just wrap the code with
 +
&nbsp;&nbsp; <b><nowiki><pre>&nbsp;&nbsp;</pre></nowiki></b>:<br>
 +
 +
<nowiki><pre></nowiki><br>
 +
: <b>formated</b>
 +
::  <b>code</b>
 +
: <b>example</b>
 +
<nowiki></pre></nowiki>
 +
 +
<b>
 +
 +
<!-- BEGIN the actual template for insert pre-formated code -->
 +
<pre>
 +
 +
#include <stdio.h>
 +
 +
int main(int argc, char *argv[])
 +
{
 +
printf("Hello, world\n");
 +
^!
 +
return 0;
 +
}
 +
 +
</pre>
 +
<!-- END the actual template for insert pre-formated code -->
 +
 +
</b>
 +
: [[User:Glia|glia]] 15:02, 28 Nov 2004 (EST)

Revision as of 20:02, 28 November 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>:

<pre>

formated
code
example

</pre>


#include <stdio.h>

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

glia 15:02, 28 Nov 2004 (EST)