Format Hints - Xyna-Factory/xyna GitHub Wiki

How to write an article.

Table of Contents

Auszeichnungen

Code-Block:

<syntaxhighlight lang="java"> public class MineSweeper { private int[][] myTruth; private boolean[][] myShow; public void cellPicked(int row, int col) { if( inBounds(row, col) && !myShow[row][col] ) { myShow[row][col] = true; if( myTruth[row][col] == 0) { for(int r = -1; r <= 1; r++) for(int c = -1; c <= 1; c++) cellPicked(row + r, col + c); } } } public boolean inBounds(int row, int col) { return 0 <= row && row < myTruth.length && 0 <= col && col < myTruth[0].length; } }</syntaxhighlight>
Monospaced-Font, Kasten drum, Syntax-Highlighting
Syntax:

<syntaxhighlight lang="xxcodelanguagexx">Code</syntaxhighlight>
  • lang (Defines the language)
  • line (Corresponds to enable_line_numbers method on GeSHi)
  • start (Corresponds to start_line_numbers_at method on GeSHi)

Code-inline:

Hier steht ein kleines Code-Beispiel mit im Text.
Monospaced-Font, kasten drum
Syntax:

<code>Code-Beispiel</code>

Namen, Aktionen

Das ist wäre ein Beispielname oder auch der Name einer Aktion.
kursiver Copy-Text
Syntax:

''Beispielname''
(zwei Hochkommas, keine Anführungsstriche)

Tastenkürzel:

Am liebsten sperre (<kbd>Ctrl+L</kbd>) ich meinen Bildschirm
ohne sonstige Auszeichnung
Syntax:

<kbd>Tastenname</kbd>

⚠️ **GitHub.com Fallback** ⚠️