Help:Script Samples: Difference between revisions
Content deleted Content added
Caleb Cooper (talk | contribs) |
Caleb Cooper (talk | contribs) |
||
Line 182:
=== Use links and formatting inside a code block ===
For this use
<pre>▼
{{Pre|class=black-white|▼
[caleb_cooper@ola cfd7416402094f6a2b8dcbccb9bad4d439b1d21a]$ egrep -c "0x0000244[57]" node_[ab]/command_output/pmcli/netinfo.txt▼
{{Color|purple|node_a/command_output/pmcli/netinfo.txt}}{{Color|cyan|:}}{{H|4|red}}▼
{{Color|purple|node_b/command_output/pmcli/netinfo.txt}}{{Color|cyan|:}}0▼
[caleb_cooper@ola cfd7416402094f6a2b8dcbccb9bad4d439b1d21a]$▼
}}▼
</pre>▼
{{Pre|class=black-white|▼
[caleb_cooper@ola cfd7416402094f6a2b8dcbccb9bad4d439b1d21a]$ egrep -c "0x0000244[57]" node_[ab]/command_output/pmcli/netinfo.txt▼
{{Color|purple|node_a/command_output/pmcli/netinfo.txt}}{{Color|cyan|:}}{{H|4|red}}▼
{{Color|purple|node_b/command_output/pmcli/netinfo.txt}}{{Color|cyan|:}}0▼
[caleb_cooper@ola cfd7416402094f6a2b8dcbccb9bad4d439b1d21a]$▼
}}▼
{{Tip| in this example <code>{{pre}}</code> was used in conjunction with <code>{{Color}}</code> (to provide a text color change) and <code>{{H}}</code> to change the background color of the font for the number 4}}▼
Or use poem tags instead of pre:
<pre>
<poem>
Line 215 ⟶ 237:
Enfolding sunny spots of greenery.
</poem>
▲<pre>
▲{{Pre|class=black-white|
▲[caleb_cooper@ola cfd7416402094f6a2b8dcbccb9bad4d439b1d21a]$ egrep -c "0x0000244[57]" node_[ab]/command_output/pmcli/netinfo.txt
▲{{Color|purple|node_a/command_output/pmcli/netinfo.txt}}{{Color|cyan|:}}{{H|4|red}}
▲{{Color|purple|node_b/command_output/pmcli/netinfo.txt}}{{Color|cyan|:}}0
▲[caleb_cooper@ola cfd7416402094f6a2b8dcbccb9bad4d439b1d21a]$
▲}}
▲</pre>
▲{{Pre|class=black-white|
▲[caleb_cooper@ola cfd7416402094f6a2b8dcbccb9bad4d439b1d21a]$ egrep -c "0x0000244[57]" node_[ab]/command_output/pmcli/netinfo.txt
▲{{Color|purple|node_a/command_output/pmcli/netinfo.txt}}{{Color|cyan|:}}{{H|4|red}}
▲{{Color|purple|node_b/command_output/pmcli/netinfo.txt}}{{Color|cyan|:}}0
▲[caleb_cooper@ola cfd7416402094f6a2b8dcbccb9bad4d439b1d21a]$
▲}}
▲{{Tip| in this example <code>{{pre}}</code> was used in conjunction with <code>{{Color}}</code> (to provide a text color change) and <code>{{H}}</code> to change the background color of the font for the number 4}}
| |||