« Test » : différence entre les versions

De Banane Atomic
Aller à la navigationAller à la recherche
Aucun résumé des modifications
 
(24 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
= Template =
= Test =
<kode lang='html'>
 
<div>{{tag}}</div>
= Razor =
<kode lang='razor'>
@* comment *@
</kode>
 
= Comment end of line =
<kode lang='cs'>
var i = 0;  // comment
 
private double progressValue;  // between 0 and 100
 
var o = new Class
{
    Prop1 = "value"  // comment
};
</kode>
</kode>


= Template =
{{code | lang=html | code=
{{code | lang=html | code=
<div>{<!-- -->{tag}<!-- -->}</div>
<div>{<!-- -->{tag}<!-- -->}</div>
Ligne 9 : Ligne 24 :


{{code | lang=html | code=
{{code | lang=html | code=
<div>{{(}}{{(}}tag{{)}}{{)}}</div>
<div>{{((}}tag{{))}}</div>
}}
}}


= List and table =
{{code | lang=html | code=
# Item 1<br>
<tbody>
{| class="wikitable wtp"
    {{#.}}
! Titre colonne 1
    <tr>
! Titre colonne 2
        <td>{{id}}</td>
|-
        <td>{{fields.title}}</td>
| colonne1 || colonne2
        <td>{{fields.state}}</td>
|}
        <td><ul>
# Item2 Text
          {{#items}}<li>{{title}}</li>{{/items}}
 
          {{^items}}No items{{/items}}
<ol>
        </ul></td>
  <li>Item 1
    </tr>
{| class="wikitable wtp"
    {{/.}}
! Titre colonne 1
</tbody>
! Titre colonne 2
}}
|-
| colonne1 || colonne2
|}</li>
  <li>Item 2 Text</li>
</ol>


= Nowiki =
= Nowiki =
Ligne 45 : Ligne 55 :
<nowiki>var v = 3;</nowiki>
<nowiki>var v = 3;</nowiki>
}}
}}
= Inline =
# <syntaxhighlight lang='cs' inline>var v = 10;</syntaxhighlight>
# <syntaxhighlight lang='cs' inline style='font-size: x-large;' id='ID'>var v = 10;</syntaxhighlight>
# <syntaxhighlight lang='cs' inline>
var v = 1;
var v = 2;\n
var v = 3;\\n
var v = 4;<br>
var v = 5;
</syntaxhighlight>
# end
= Empty lang =
<kode lang=''>
// empty lang
var v = 10;
</kode>
<kode>
// no lang
var v = 10;
</kode>
<syntaxhighlight lang=''>
// empty lang
var v = 10;
</syntaxhighlight>
<syntaxhighlight>
// no lang
var v = 10;
</syntaxhighlight>
<syntaxhighlight lang='js' style='font-size: x-large;'>
// js
var v = 10;
</syntaxhighlight>
= Leading spaces =
<kode lang='cs'>
    var v = 10;
    var x = 1 < 2 & 3;
   
</kode>


= List and break =
= List and break =

Dernière version du 21 novembre 2023 à 01:10

Test

Razor

Razor.svg
@* comment *@

Comment end of line

Cs.svg
var i = 0;  // comment

private double progressValue;  // between 0 and 100

var o = new Class
{
    Prop1 = "value"  // comment
};

Template

Html.svg
<div>{{tag}}</div>
Html.svg
<div>{{tag}}</div>
Html.svg
<tbody>
    {{#.}}
    <tr>
        <td>[[:Modèle:Id]]</td>
        <td>[[:Modèle:Fields.title]]</td>
        <td>[[:Modèle:Fields.state]]</td>
        <td><ul>
          {{#items}}<li>[[:Modèle:Title]]</li>[[:Modèle:/items]]
          [[:Modèle:^items]]No items[[:Modèle:/items]]
        </ul></td>
    </tr>
    {{/.}}
</tbody>

Nowiki

var v = 1;
var v = 2;
<nowiki>var v = 3;</nowiki>
var v = 1;
var v = 2;
var v = 3;

List and break

  1. Step1 inline code 111 222 333 end line
    extra line
  2. Step 2 code block
    111
    222
    extra line
  1. Step1 inline code 111 222 333 end line
    extra line
  2. Step 2 code block
    111
    222
    extra line
  3. Step 3 kode
    Bash.svg
    111
    222
    extra line
  4. Step 4 text
  5. Step 5 filebox
    xxx.sh
    111
    222
    extra line
  6. Step 6 End

pre

yyy

SyntaxHighlight

var v = new StringBuilder();

var v = new StringBuilder();
// some js code

no highlight

Cs.svg
var myObject = new MyCLass();
Cs.svg
var myObject = new MyCLass();
Bash.svg
var myObject = new MyCLass();

listes

  • un
    • deux
      • trois
  • dix
    • trente
  • un
    • deux
    • 22
      • trois
  • plus
  • plus
  • moins
  • moins
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois
  • un
  • deux
  • trois

SVG

Bash.svg
Bash.svg