Template:PawnCode: Difference between revisions

From San Andreas Multiplayer
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
<pre>
<pre>
{{#replace: {{{code}}}
{{#if: {{{code|}}}
  |old=public
  | {{#replace: {{{code}}}
  |new=<span class="pawn-keyword">public</span>
      | old=public
  |old=private
      | new=<span class="pawn-keyword">public</span>
  |new=<span class="pawn-keyword">private</span>
      | old=private
  |old=if
      | new=<span class="pawn-keyword">private</span>
  |new=<span class="pawn-keyword">if</span>
      | old=if
  |old=else
      | new=<span class="pawn-keyword">if</span>
  |new=<span class="pawn-keyword">else</span>
      | old=else
  |old=for
      | new=<span class="pawn-keyword">else</span>
  |new=<span class="pawn-keyword">for</span>
      | old=for
  |old=while
      | new=<span class="pawn-keyword">for</span>
  |new=<span class="pawn-keyword">while</span>
      | old=while
  |old=return
      | new=<span class="pawn-keyword">while</span>
  |new=<span class="pawn-keyword">return</span>
      | old=return
  |old="//"
      | new=<span class="pawn-keyword">return</span>
  |new=<span class="pawn-comment">//</span>
      | old="//"
  |old="\"(.*?)\""
      | new=<span class="pawn-comment">//</span>
  |new=<span class="pawn-string">"$1"</span>
      | old="\"(.*?)\""
  |old="\w+\s*\(.*?\)"
      | new=<span class="pawn-string">"$1"</span>
  |new=<span class="pawn-function">$0</span>
      | old="\w+\s*\(.*?\)"
      | new=<span class="pawn-function">$0</span>
    }}
  | Keine Code-Angabe gefunden.
}}
}}
</pre>
</pre>

Revision as of 18:45, 2 November 2024

{{#if: {{{code|}}}
  | {{#replace: {{{code}}}
      | old=public
      | new=<span class="pawn-keyword">public</span>
      | old=private
      | new=<span class="pawn-keyword">private</span>
      | old=if
      | new=<span class="pawn-keyword">if</span>
      | old=else
      | new=<span class="pawn-keyword">else</span>
      | old=for
      | new=<span class="pawn-keyword">for</span>
      | old=while
      | new=<span class="pawn-keyword">while</span>
      | old=return
      | new=<span class="pawn-keyword">return</span>
      | old="//"
      | new=<span class="pawn-comment">//</span>
      | old="\"(.*?)\""
      | new=<span class="pawn-string">"$1"</span>
      | old="\w+\s*\(.*?\)"
      | new=<span class="pawn-function">$0</span>
    }}
  | Keine Code-Angabe gefunden.
}}