File: prism-php-extras.html

package info (click to toggle)
node-prismjs 1.30.0%2Bdfsg%2B~1.26.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,220 kB
  • sloc: javascript: 27,628; makefile: 9; sh: 7; awk: 4
file content (14 lines) | stat: -rw-r--r-- 438 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<h2>General</h2>
<p>This adds new tokens to the PHP language to allow more customization in your theme.</p>
<p>Prism's default themes do not support the new tokens, so there will be no visible changes in the following examples.</p>

<h2>$this</h2>
<pre><code class="language-php">$this->foo = 2;</code></pre>

<h2>Global variables</h2>
<pre><code class="language-php">$_SERVER;
$_GET;
$_POST;
$argc; $argv;

// and many more</code></pre>