Hilfe:Syntaxhervorhebung: Unterschied zwischen den Versionen
(Die Seite wurde neu angelegt: „Syntaxhervorhebung (syntax highlighting) ist...“) |
|||
| (11 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
| − | Syntaxhervorhebung (syntax highlighting) ist... | + | =Syntaxhervorhebung= |
| + | Syntaxhervorhebung (syntax highlighting) ist das Hervorheben von Quelltexten verschiedener Herkunft. | ||
| + | |||
| + | <source lang="xml"> | ||
| + | <syntaxhighlight lang="xml" valid="true" line="1" highlight="2-3"> | ||
| + | <code code="1435" codeSystem="2.1.56.34.23.12.324"> | ||
| + | <translation code="1435" codeSystem="2.1.56.34.23.12.324"/> | ||
| + | </code> | ||
| + | </syntaxhighlight> | ||
| + | </source> | ||
| + | |||
| + | Mit diesem Tag werden Fragmente von HL7 V3 XML oder Version 2 Nachrichten gesetzt. | ||
| + | |||
| + | <tt>syntaxhighlight</tt> kennt folgende Parameter: | ||
| + | |||
| + | {| class="hl7table" | ||
| + | !Parameter||Bedeutung | ||
| + | |- | ||
| + | | lang || zurzeit Folgendes | ||
| + | *XML | ||
| + | *text | ||
| + | |- | ||
| + | | heading || Überschrift (optional), wird mit einem <nowiki><hr></nowiki> abgetrennt | ||
| + | |- | ||
| + | | valid || Wahrheitswert, true, wenn das Beispiel valide ist. Die Hintergrundfarbe des XML ist grünlich. | ||
| + | |- | ||
| + | | error || Wahrheitswert, true, wenn das Beispiel nicht valide (fehlerhaft) ist. Die Hintergrundfarbe des XML ist rötlich. | ||
| + | |} | ||
| + | |||
| + | ===Normales XML-Beispiel=== | ||
| + | <pre> | ||
| + | <syntaxhighlight lang="xml"> | ||
| + | <text xsi:type="ED" mediaType="text/plain"> | ||
| + | Die häusliche Situation des Patienten ist schwierig, da die Kinder weit weg wohnen. | ||
| + | </text> | ||
| + | </syntaxhighlight> | ||
| + | </pre> | ||
| + | ergibt | ||
| + | <syntaxhighlight lang="xml"> | ||
| + | <text xsi:type="ED" mediaType="text/plain"> | ||
| + | Die häusliche Situation des Patienten ist schwierig, da die Kinder weit weg wohnen. | ||
| + | </text> | ||
| + | </syntaxhighlight> | ||
| + | ===Hervorgehobenes fehlerhaftes XML-Beispiel=== | ||
| + | <pre> | ||
| + | <syntaxhighlight lang="xml" error="true"> | ||
| + | <code code="ab de" codeSystem="0.2.3"> | ||
| + | </syntaxhighlight> | ||
| + | </pre> | ||
| + | ergibt | ||
| + | <syntaxhighlight lang="xml" error="true"> | ||
| + | <code code="ab de" codeSystem="0.2.3"> | ||
| + | </syntaxhighlight> | ||
| + | ===Hervorgehobenes richtiges XML-Beispiel=== | ||
| + | <pre> | ||
| + | <syntaxhighlight lang="xml" valid="true" heading="Richtiges Beispiel"> | ||
| + | <code code="1435" codeSystem="2.1.56.34.23.12.324"> | ||
| + | </syntaxhighlight> | ||
| + | </pre> | ||
| + | ergibt | ||
| + | <syntaxhighlight lang="xml" valid="true" heading="Richtiges Beispiel"> | ||
| + | <code code="1435" codeSystem="2.1.56.34.23.12.324"> | ||
| + | </syntaxhighlight> | ||
| + | ===XML-Beispiel mit Zeilennummern und hervorgehobene Zeilen=== | ||
| + | <pre> | ||
| + | <syntaxhighlight lang="xml" line="1" highlight="2-3"> | ||
| + | <code code="1435" codeSystem="2.1.56.34.23.12.324"> | ||
| + | <translation code="1435" codeSystem="2.1.56.34.23.12.324"/> | ||
| + | <translation code="3342" codeSystem="2.1.56.34.23.12.124"/> | ||
| + | </code> | ||
| + | </syntaxhighlight> | ||
| + | </pre> | ||
| + | ergibt | ||
| + | <syntaxhighlight lang="xml" line="1" highlight="2-3"> | ||
| + | <code code="1435" codeSystem="2.1.56.34.23.12.324"> | ||
| + | <translation code="1435" codeSystem="2.1.56.34.23.12.324"/> | ||
| + | <translation code="3342" codeSystem="2.1.56.34.23.12.124"/> | ||
| + | </code> | ||
| + | </syntaxhighlight> | ||
Aktuelle Version vom 9. August 2023, 11:47 Uhr
Inhaltsverzeichnis
Syntaxhervorhebung
Syntaxhervorhebung (syntax highlighting) ist das Hervorheben von Quelltexten verschiedener Herkunft.
<syntaxhighlight lang="xml" valid="true" line="1" highlight="2-3">
<code code="1435" codeSystem="2.1.56.34.23.12.324">
<translation code="1435" codeSystem="2.1.56.34.23.12.324"/>
</code>
</syntaxhighlight>
Mit diesem Tag werden Fragmente von HL7 V3 XML oder Version 2 Nachrichten gesetzt.
syntaxhighlight kennt folgende Parameter:
| Parameter | Bedeutung |
|---|---|
| lang | zurzeit Folgendes
|
| heading | Überschrift (optional), wird mit einem <hr> abgetrennt |
| valid | Wahrheitswert, true, wenn das Beispiel valide ist. Die Hintergrundfarbe des XML ist grünlich. |
| error | Wahrheitswert, true, wenn das Beispiel nicht valide (fehlerhaft) ist. Die Hintergrundfarbe des XML ist rötlich. |
Normales XML-Beispiel
<syntaxhighlight lang="xml"> <text xsi:type="ED" mediaType="text/plain"> Die häusliche Situation des Patienten ist schwierig, da die Kinder weit weg wohnen. </text> </syntaxhighlight>
ergibt
<text xsi:type="ED" mediaType="text/plain">
Die häusliche Situation des Patienten ist schwierig, da die Kinder weit weg wohnen.
</text>
Hervorgehobenes fehlerhaftes XML-Beispiel
<syntaxhighlight lang="xml" error="true"> <code code="ab de" codeSystem="0.2.3"> </syntaxhighlight>
ergibt
<code code="ab de" codeSystem="0.2.3">
Hervorgehobenes richtiges XML-Beispiel
<syntaxhighlight lang="xml" valid="true" heading="Richtiges Beispiel"> <code code="1435" codeSystem="2.1.56.34.23.12.324"> </syntaxhighlight>
ergibt
<code code="1435" codeSystem="2.1.56.34.23.12.324">
XML-Beispiel mit Zeilennummern und hervorgehobene Zeilen
<syntaxhighlight lang="xml" line="1" highlight="2-3"> <code code="1435" codeSystem="2.1.56.34.23.12.324"> <translation code="1435" codeSystem="2.1.56.34.23.12.324"/> <translation code="3342" codeSystem="2.1.56.34.23.12.124"/> </code> </syntaxhighlight>
ergibt
1<code code="1435" codeSystem="2.1.56.34.23.12.324">
2 <translation code="1435" codeSystem="2.1.56.34.23.12.324"/>
3 <translation code="3342" codeSystem="2.1.56.34.23.12.124"/>
4</code>