ReST

ReST

reStructuredText (kurz: ReST) ist eine Auszeichnungssprache (Markup) mit dem Ziel, in der reinen Textform besonders lesbar zu sein. Weiterhin soll reStructuredText leicht in andere Formate umwandelbar sein. Die derzeitige Version (0.4) unterstützt XHTML, XML sowie LaTeX. Letzteres ermöglicht einen unkomplizierten Export nach PDF.

Der reStructuredText-Parser ist eine Komponente der Docutils, einem in der Programmiersprache Python entwickelten Textverarbeitungsprogramm. Eben in diesem Umfeld findet reStructuredText verbreitet Einsatz in der Formatierung der docstrings, der Python-typischen Kommentare zur Programmdokumentation. Zudem bieten einige Wiki-Systeme neben ihrer eigenen Wiki-Syntax reStructuredText als Alternative an.

Übliche Abkürzungen für reStructuredText sind RST, reST oder ReST.

Syntaxbeispiele

Überschriften:

Abschnitt
=========

Unterabschnitt
--------------

Aufzählungslisten:

- Erster Punkt

- Zweiter Punkt

  - Ein Unterpunkt

- Dritter Punkt


1) Ein Punkt einer nummerierten Liste

2) Zweites...

   a) Unterpunkt einer nummerierten Liste

      i) Noch eine Ebene tiefer...

3) Dritter Punkt der nummerierten Liste

Benannte Hyperlinks:

Dieser Satz dient zur Demonstration_ von `Hyperlinks in reST`_.

.. _Demonstration: http://de.wikipedia.org/wiki/Demonstration
.. _Hyperlinks in reST: http://docutils.sourceforge.net/docs/user/rst/quickref.html#hyperlink-targets

Anonyme Hyperlinks:

Ein Satz mit einem `anonymen Link auf die Python Website`__.

__ http://www.python.org/

Fußnoten:

Hier steht nicht viel [#]_.  Schauen sie einfach mal ans Ende der Seite.

.. [#] Fußnoten können automatisch durchnummeriert werden. Mehr dazu in der reST Kurzreferenz

Weblinks


Wikimedia Foundation.

Игры ⚽ Поможем написать реферат

Schlagen Sie auch in anderen Wörterbüchern nach:

  • Rest — Rest, n. [AS. rest, r[ae]st, rest; akin to D. rust, G. rast. OHG. rasta, Dan. & Sw. rast rest, repose, Icel. r[ o]st the distance between two resting places, a mole, Goth. rasta a mile, also to Goth. razn house, Icel. rann, and perhaps to G. ruhe …   The Collaborative International Dictionary of English

  • rest*/*/*/ — [rest] noun I 1) [singular] the part of something that remains, or the people or things that remain I m not really hungry – do you want the rest?[/ex] Rain will spread to the rest of the country by evening.[/ex] The rest of the attackers were in… …   Dictionary for writing and speaking English

  • Rest — (von lateinisch: restare = „übrig bleiben“/„übrigbleiben“, aus: re = „zurück“, „wieder“ sowie stare = „stehen“; spätmittelhochdeutsch: rest[e]; italienisch: resto = „übrig bleibender Geldbetrag“) bedeutet allgemein etwas, das übrig geblieben ist …   Deutsch Wikipedia

  • rest — vi: to bring to an end voluntarily the introduction of evidence in a case the defense rest s vt: to cease presenting evidence pertinent to (a case) I rest my case Merriam Webster’s Dictionary of Law. Merriam Webster. 1996 …   Law dictionary

  • rest# — rest n Rest, repose, relaxation, leisure, ease, comfort are comparable when they mean freedom from toil or strain. Rest, the most general term, implies withdrawal from all labor or exertion and suggests an opposition to the term work; it does not …   New Dictionary of Synonyms

  • Rest — (r[e^]st), v. i. [imp. & p. p. {Rested}; p. pr. & vb. n. {Resting}.] [AS. restan. See {Rest}, n.] 1. To cease from action or motion, especially from action which has caused weariness; to desist from labor or exertion. [1913 Webster] God . . .… …   The Collaborative International Dictionary of English

  • REST — (von lateinisch re stare = übrig bleiben) bedeutet allgemein etwas, das übrig geblieben ist sowie in der Mathematik das, was bei der Division übrigbleibt, siehe Division mit Rest in der Chemie das Gegenstück zur funktionellen Gruppe eines… …   Deutsch Wikipedia

  • rest — REST, resturi, s.n. 1. Ceea ce rămâne dintr un tot, dintr un ansamblu din care cea mai mare parte a fost consumată, îndepărtată, luată, scoasă; rămăşiţă. 2. Tot ceea ce nu face parte din rândul lucrurilor menţionate anterior. 3. Sumă de bani care …   Dicționar Român

  • rest — Ⅰ. rest [1] ► VERB 1) cease work or movement in order to relax or recover strength. 2) allow to be inactive in order to regain or save strength or energy. 3) place or be placed so as to stay in a specified position: his feet rested on the table.… …   English terms dictionary

  • rest — rest2 [rest] n. [ME < MFr reste < OFr rester, to rest, remain < L restare, to stop, stand, rest, remain < re , back + stare, to STAND] 1. what is left after part is taken away; remainder 2. [with pl. v.] the others: Used with the vi.… …   English World dictionary

  • rest — [n1] inactivity break, breather*, breathing space*, calm, calmness, cessation, coffee break*, comfort, composure, cutoff, downtime*, doze, dreaminess, ease, forty winks*, halt, holiday, hush, idleness, interlude, intermission, interval, leisure,… …   New thesaurus

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”