Программа «A»

Всем привет!

A Markdown aside is useful for displaying notices, hints, or definitions to your readers.

normal use

Note example:

{{< alert note >}}
<p>A notice disclaimer</p>
{{< /alert >}}

Result:

A notice disclaimer

You could custom title :

{{< alert note Примечание >}}
<p>A notice disclaimer</p>
{{< /alert >}}
A notice disclaimer

tip

{{< alert tip >}}
<p>A tip disclaimer</p>
{{< /alert >}}
A tip disclaimer

info

{{< alert info >}}
<p>A info disclaimer</p>
{{< /alert >}}
An information disclaimer

warning

{{< alert warning >}}
<p>A warning disclaimer</p>
{{< /alert >}}
An warning disclaimer

Output: Successfully escaped - шорткод - highlight

Python

  @requires_authorization
def somefunc(param1='', param2=0):
    r'''A docstring'''
    if param1 > param2: # interesting
        print 'Gre\'ater'
    return (param2 - param1 + 1 + 0b10l) or None

class SomeClass:
    pass

>>> message = '''interpreter
... prompt'''

PHP

 require_once 'Zend/Uri/Http.php';

namespace Location\Web;

interface Factory
{
    static function _factory();
}

abstract class URI extends BaseURI implements Factory
{
    abstract function test();

    public static $st1 = 1;
    const ME = "Yo";
    var $list = NULL;
    private $var;

    /**
     * Returns a URI
     *
     * @return URI
     */
    static public function _factory($stats = array(), $uri = 'http')
    {
        echo __METHOD__;
        $uri = explode(':', $uri, 0b10);
        $schemeSpecific = isset($uri[1]) ? $uri[1] : '';
        $desc = 'Multi
line description';

        // Security check
        if (!ctype_alnum($scheme)) {
            throw new Zend_Uri_Exception('Illegal scheme');
        }

        $this->var = 0 - self::$st;
        $this->list = list(Array("1"=> 2, 2=>self::ME, 3 => \Location\Web\URI::class));

        return [
            'uri'   => $uri,
            'value' => null,
        ];
    }
}

echo URI::ME . URI::$st1;

__halt_compiler () ; datahere
datahere
datahere */
datahere

JavaScript

 function $initHighlight(block, cls) {
  try {
    if (cls.search(/\bno\-highlight\b/) != -1)
      return process(block, true, 0x0F) +
             ` class="${cls}"`;
  } catch (e) {
    /* handle exception */
  }
  for (var i = 0 / 2; i < classes.length; i++) {
    if (checkCondition(classes[i]) === undefined)
      console.log('undefined');
  }

HTML

 <!DOCTYPE html>
<title>Title</title>

<style>body {width: 500px;}</style>

<script type="application/javascript">
  function $init() {return true;}
</script>

<body>
  <p checked class="title" id='title'>Title</p>
  <!-- here goes the rest of the page -->
</body>
This is a primary alert—check it out!
This is a secondary alert—check it out!
This is a success alert—check it out!
This is a info alert—check it out!
This is a warning alert—check it out!
This is a danger alert—check it out!
This is a dark alert—check it out!
This is a light alert—check it out!
Vladimir Dmitrijev
Vladimir Dmitrijev
Внештатный штатский
comments powered by Disqus
Следующая
Предыдущая

Похожие статьи