« Test » : différence entre les versions

De Banane Atomic
Aller à la navigationAller à la recherche
Aucun résumé des modifications
 
(179 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
= Leading spaces =
= Test =
<kode lang='cs'>


    var v = 10;
= Razor =
<kode lang='razor'>
@* comment *@
</kode>
</kode>


= List and break =
= Comment end of line =
# Step1<syntaxhighlight lang='bash' inline>111 222 333</syntaxhighlight><br>xxx
# Step 2 has some code:<kode lang="bash">
Totally
some
bash lines
here
</kode>
# Step 3
 
= pre =
<pre>
yyy
</pre>
 
= Highlight issues =
<kode lang='cs'>
<kode lang='cs'>
namespace MyNamespace
var i = 0;  // comment
{
    // code
}
 
// replaced by
namespace MyNamespace;


// code
private double progressValue;  // between 0 and 100


[Attributes]
var o = new Class
[Attributes()]
[Attributes("xxx")]
public interface IInterface
{
{
     public int MyProperty { get; set; }
     Prop1 = "value"  // comment
    public List<int> MyProperty2 { get; set; }
};
    public Task<List<int>> MyProperty2 { get; set; }
</kode>
    public MyClass MyProperty3 { get; set; }


    public void MyMethod()
= Template =
    {
{{code | lang=html | code=
<div>{<!-- -->{tag}<!-- -->}</div>
}}


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


     public int[] MyMethod1(int[] param)
{{code | lang=html | code=
     {
<tbody>
         return 0;
     {{#.}}
     }
     <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>
}}


    public List<int> MyMethod2(List<int> param)
= Nowiki =
    {
<syntaxhighlight lang='cs'>
        return new List<int>();
var v = 1;
    }
var v = 2;
<nowiki>var v = 3;</nowiki>
</syntaxhighlight>


    public Task<List<int[]>> MyMethod2(List<Class[]> param)
{{#tag:syntaxhighlight|
    {
var v = 1;
        var v = 10;
var v = 2;
        var v = new List<int>();
<nowiki>var v = 3;</nowiki>
        List<int> v = new List<int>();
}}


        var v = $"test {test} test";
= List and break =
# Step1 inline code <syntaxhighlight lang='bash' inline>111 222 333</syntaxhighlight> end line<br>extra line
# Step 2 code block <syntaxhighlight lang="bash">
111
222
</syntaxhighlight>extra line


        MyMethod(param1, "param2");
<ol>
        var v = MyMethod(param1, "param2");
<li>Step1 inline code <syntaxhighlight lang='bash' inline>111 222 333</syntaxhighlight> end line<br>extra line</li>
<li>Step 2 code block <syntaxhighlight lang="bash">
111
222
</syntaxhighlight>extra line</li>
<li>Step 3 kode <kode lang='bash'>
111
222
</kode>extra line</li>
<li>Step 4 text</li>
<li>Step 5 filebox<filebox fn='xxx.sh'>
111
222
</filebox>extra line</li>
<li>Step 6 End</li>
</ol>


        return new List<int>();
= pre =
    }
<pre>
}
yyy
 
</pre>
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 104 : 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 118 : 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 197 : 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