Difference between revisions of "Template files"

From EditPlus Wiki
Jump to: navigation, search
 
(Deleting Spam)
 
(30 intermediate revisions by 21 users not shown)
Line 1: Line 1:
 
I would add some code here, but I can't figure out how to add code without wiki formating it.
 
I would add some code here, but I can't figure out how to add code without wiki formating it.
 +
 +
(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>
 +
 +
When you type this:<br>
 +
<!-- 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>example</b>
 +
<b><nowiki></pre></nowiki></b>
 +
 +
 +
You get this:
 +
<b>
 +
<!-- BEGIN the ACTUAL TEMPLATE for insert pre-formated code -->
 +
<pre>
 +
      your formated
 +
      code
 +
  example
 +
</pre>
 +
<!-- END of the ACTUAL TEMPLATE template for insert pre-formated code -->
 +
</b>
 +
 +
 +
For example:
 +
<b>
 +
<!-- BEGIN Example -->
 +
<pre>
 +
#include <stdio.h>
 +
 +
int main(int argc, char *argv[])
 +
{
 +
printf("Hello, world\n");
 +
^!
 +
return 0;
 +
}
 +
</pre>
 +
 +
 +
 +
<!-- END Example -->
 +
</b>
 +
 +
: [[User:Glia|glia]] 15:02, 28 Nov 2004 (EST)

Latest revision as of 08:41, 13 September 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)