open:delegate

some text
(basic)
just marks up “some text” as preformatted text (w/o any special highlighting).
some text
(extended)
marks up “some text” as preformatted text (w/o any special highlighting) with line numbers starting at number 7.

A description

some text
(extended)
marks up “some text” as preformatted text (w/o any special highlighting) with a footer line of “A description”.
some text
(basic)
turns on HTML highlighting for “some text”.
some text
(extended)
turns on HTML highlighting for “some text” with added line numbers starting with number 1.

h A description:

some text
(extended)
turns on HTML highlighting for “some text” and a header line of “A description:”.

A description

some text
(extended)
turns on HTML highlighting for “some text” with added line numbers starting with number 66 and a footer line of “A description”.
some text
(extended)
turns on diff highlighting (autodetecting the patch format).
some text
(extended)
turns on diff highlighting (assuming an unified patch format).

A description

some text
(extended)
turns on diff highlighting (assuming a context patch format) and a footer line of “A description”.

The shell output

some console commands capture
(extended)
turns on console mode with a footer line of “The shell output”.

t The example page:

extern> http://some.where.else.tld/page.html
(extended)

Listing 2

var de = function() {
	return (typeof(window.de) == 'object') ? window.de : {};
}();

public class clazzA
{
  someFuncA()
  {
    clazzB b = new clazzB();
    b.methodB += new MethodHandler(methodA);
  }
 
  methodA(int param)
  {
    // Do something
  }
 
}

<sxh c#; highlight: [6]>
public class clazzA
{

someFuncA()
{
  clazzB b = new clazzB();
  b.methodB += new MethodHandler(methodA);
}

methodA(int param)
{
  // Do something
}

}
</sxh>

<sxh c#>
public delegate void MethodHandler(int param);

public class clazzB
{

public MethodHandler methodB;

someFuncB()
{
  methodB(param);
}

}
</sxh>

classA → someFuncA
clazzB → someFuncB → methodB → methodA → // Do something

  • open/delegate.txt
  • 마지막으로 수정됨: 2020/06/02 09:25
  • 저자 127.0.0.1