« Test » : différence entre les versions

De Banane Atomic
Aller à la navigationAller à la recherche
Balise : Révocation manuelle
Aucun résumé des modifications
 
(118 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
= List and table =
= Test =
# Item 1<br>
{| class="wikitable wtp"
! Titre colonne 1
! Titre colonne 2
|-
| colonne1 || colonne2
|}
# Item2 Text


<ol>
= Razor =
  <li>Item 1
<kode lang='razor'>
{| class="wikitable wtp"  
@* comment *@
! Titre colonne 1
</kode>
! Titre colonne 2
 
|-
= Comment end of line =
| colonne1 || colonne2
<kode lang='cs'>
|}</li>
var i = 0;  // comment
  <li>Item 2 Text</li>
 
</ol>
private double progressValue;  // between 0 and 100
 
var o = new Class
{
    Prop1 = "value" // comment
};
</kode>
 
= Template =
{{code | lang=html | code=
<div>{<!-- -->{tag}<!-- -->}</div>
}}
 
{{code | lang=html | code=
<div>{{((}}tag{{))}}</div>
}}
 
{{code | lang=html | code=
<tbody>
    {{#.}}
    <tr>
        <td>{{id}}</td>
        <td>{{fields.title}}</td>
        <td>{{fields.state}}</td>
        <td><ul>
          {{#items}}<li>{{title}}</li>{{/items}}
          {{^items}}No items{{/items}}
        </ul></td>
    </tr>
    {{/.}}
</tbody>
}}


= Nowiki =
= Nowiki =
Ligne 32 : 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 =
Ligne 107 : Ligne 85 :
yyy
yyy
</pre>
</pre>
= Highlight issues =
<kode lang='cs'>
namespace MyNamespace
{
    // code
}
// replaced by
namespace MyNamespace;
// code
[Attributes]
[Attributes()]
[Attributes("xxx")]
public interface IInterface
{
    public int MyProperty { get; set; }
    public List<int> MyProperty2 { get; set; }
    public Task<List<int>> MyProperty2 { get; set; }
    public MyClass MyProperty3 { get; set; }
    public void MyMethod()
    {
    }
    public int[] MyMethod1(int[] param)
    {
        return 0;
    }
    public List<int> MyMethod2(List<int> param)
    {
        return new List<int>();
    }
    public Task<List<int[]>> MyMethod2(List<Class[]> param)
    {
        var v = 10;
        var v = new List<int>();
        List<int> v = new List<int>();
        var v = $"test {test} test";
        MyMethod(param1, "param2");
        var v = MyMethod(param1, "param2");
        return new List<int>();
    }
}
public class MyClass<T> where T : class
{
}
</kode>
<kode lang='cs'>
// StackPanel
stackPanel.SetValue(StackPanel.OrientationProperty, Orientation.Horizontal);
// MyEnum
enum MyEnum {}
// value
var value = 0;
// CreateMap<D, IEnumerable<FlatD>>
cfg.CreateMap<D, IEnumerable<FlatD>>()
      .ConvertUsing<DToFlatDConverter>();
// Map<IEnumerable<FlatD>>
var flatDs = mapper.Map<IEnumerable<FlatD>>(d).ToList();
// IEnumerable
IEnumerable<(int groupId, int userId)> groupAndUserList = group.UserIds.Select(x => ValueTuple.Create(group.Id, x));
</kode>


= SyntaxHighlight =
= SyntaxHighlight =
Ligne 192 : Ligne 91 :
<syntaxhighlight lang='cs'>
<syntaxhighlight lang='cs'>
var v = new StringBuilder();
var v = new StringBuilder();
</syntaxhighlight>
<syntaxhighlight lang="js">
// some js code
</syntaxhighlight>
</syntaxhighlight>


Ligne 206 : Ligne 109 :
var myObject = new MyCLass();
var myObject = new MyCLass();
</kode>
</kode>
= ini =
<filebox fn='test.ini'>
[section]
cle = valeur
# comment
// comment
; comment
</filebox>


= listes =
= listes =
Ligne 285 : Ligne 179 :


= SVG =
= SVG =
[[Fichier:Bash.svg|100px]]
[[File:Bash.svg|100px]]
<br />
[[File:1.svg|1000px]]
<br />
<br />
[[File:ASP.NET_Core.svg]]
[[File:Bash.svg]]

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