Help:Editing

From EiffelStudio: an EiffelSoftware project
Revision as of 18:33, 19 January 2007 by Juliant (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

For text formatting (bold, italics, etc.) have a look at http://meta.wikimedia.org/wiki/Help:Editing for help.

To highlight code, you can use the following syntax:

What it looks like What you type
Code without syntax highlighting
<code>
Code without syntax highlighting
</code>
class EIFFEL_CODE
inherit
  LIST [ANY]
end
<eiffel>
class EIFFEL_CODE
inherit
  LIST [ANY]
end
</eiffel>
static void main(**args) {
  args++;
}
<c>
static void main(**args) {
  args++;
}
</c>
<?xml version="1.0"?>
<tag>
  <subtag/>
  <subtag attr="value">
  </subtag>
</tag>
<xml>
<?xml version="1.0"?>
<tag>
  <subtag/>
  <subtag attr="value">
  </subtag>
</tag>
</xml>

Code inlined into text is done by having only one line between the code-tags. Like that: class EIFFEL.

Code inlined into text is done by having only 
one line between the code-tags. 
Like that: <eiffel>class EIFFEL</eiffel>.

The available tags are:

<code>...</code> Code without syntax highlighting
<eiffel>...</eiffel> Eiffel code
<c>...</c> C code
<cpp>...</cpp> C++ code
<csharp>...</csharp> CSharp code
<java>...</java> Java code
<xml>...</xml> XML

If you want to highlight a different language or have line numbers you can use the code tag and add formatting options:

<code>[php,N] ... </code> PHP code without line numbers
<code>[perl,Y] ... </code> Perl code with line numbers

Available language types are: eiffel, c, cpp, html, java, css, js, javascript, vbnet, csharp, pascal, xml, xhtml, php, delphi, bash, perl, sql, python, pseudocode