« Test » : différence entre les versions

De Banane Atomic
Aller à la navigationAller à la recherche
Aucun résumé des modifications
 
(152 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
= Inline =
= Test =
# <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 =
= Razor =
<kode lang=''>
<kode lang='razor'>
// empty lang
@* comment *@
var v = 10;
</kode>
</kode>


<kode>
= Comment end of line =
// no lang
<kode lang='cs'>
var v = 10;
var i = 0;  // comment
 
private double progressValue;  // between 0 and 100
 
var o = new Class
{
    Prop1 = "value"  // comment
};
</kode>
</kode>


<syntaxhighlight lang=''>
= Template =
// empty lang
{{code | lang=html | code=
var v = 10;
<div>{<!-- -->{tag}<!-- -->}</div>
</syntaxhighlight>
}}
 
{{code | lang=html | code=
<div>{{((}}tag{{))}}</div>
}}


<syntaxhighlight>
{{code | lang=html | code=
// no lang
<tbody>
var v = 10;
    {{#.}}
</syntaxhighlight>
    <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>
}}


<syntaxhighlight lang='js' style='font-size: x-large;'>
= Nowiki =
// js
<syntaxhighlight lang='cs'>
var v = 10;
var v = 1;
var v = 2;
<nowiki>var v = 3;</nowiki>
</syntaxhighlight>
</syntaxhighlight>


= Leading spaces =
{{#tag:syntaxhighlight|
<kode lang='cs'>
var v = 1;
var v = 2;
<nowiki>var v = 3;</nowiki>
}}


    var v = 10;
= List and break =
    var x = 1 < 2 & 3;
# Step1 inline code <syntaxhighlight lang='bash' inline>111 222 333</syntaxhighlight> end line<br>extra line
</kode>
# Step 2 code block <syntaxhighlight lang="bash">
111
222
</syntaxhighlight>extra line


= List and break =
<ol>
# Step1<syntaxhighlight lang='bash' inline>111 222 333</syntaxhighlight><br>xxx
<li>Step1 inline code <syntaxhighlight lang='bash' inline>111 222 333</syntaxhighlight> end line<br>extra line</li>
# Step 2 has some code:<syntaxhighlight lang="bash">
<li>Step 2 code block <syntaxhighlight lang="bash">
111
111
222
222
</syntaxhighlight>
</syntaxhighlight>extra line</li>
# Step 3<kode lang='bash'>
<li>Step 3 kode <kode lang='bash'>
111
111
222
222
</kode><br><br>
</kode>extra line</li>
# Step 4<filebox fn='xxx.sh'>
<li>Step 4 text</li>
<li>Step 5 filebox<filebox fn='xxx.sh'>
111
111
222
222
</filebox>
</filebox>extra line</li>
# Step 5
<li>Step 6 End</li>
</ol>


= pre =
= pre =
Ligne 64 : 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 149 : 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 163 : 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 242 : 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