Test

De Banane Atomic
Aller à la navigationAller à la recherche

Nowiki

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

Inline

  1. var v = 10;
  2. var v = 10;
  3. var v = 1; var v = 2;\n var v = 3;\\n var v = 4;<br> var v = 5;
  4. end

Empty lang

Bash.svg
// empty lang
var v = 10;
Bash.svg
// no lang
var v = 10;
// empty lang
var v = 10;
// no lang
var v = 10;
// js
var v = 10;

Leading spaces

Cs.svg

    var v = 10;
    var x = 1 < 2 & 3;

List and break

  1. Step1111 222 333
    xxx
  2. Step 2 has some code:
    111
    222
  3. Step 3
    Bash.svg
    111
    222


    1. Step 4
      xxx.sh
      111
      222
      1. Step 5

      pre

      yyy
      

      Highlight issues

      Cs.svg
      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
      {
      
      }
      Cs.svg
      // 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));

      SyntaxHighlight

      var v = new StringBuilder();

      var v = new StringBuilder();

      no highlight

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

      ini

      test.ini
      [section]
      cle = valeur
      # comment
      // comment
      ; comment

      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
      1.svg
      Fichier:ASP.NET Core.svg