Project

General

Profile

1
<?php
2
  /**
3
  * QuickSkin Extension codesnippetstart
4
  * required for the start of a code snippet
5
  *
6
  * Usage Example:
7
  * Template: Code Snippet<br />{codesnippetstart:}
8
  *
9
  * @author Andy Prevost andy@codeworxtech.com
10
  */
11
  function qx_codesnippetstart ( $param='' ) {
12
    /*
13
    nogutter = no line numbers
14
    nocontrols = no menu at top
15
    collapse = = display nothing, menu at top will display '+ expand source'
16
    firstline[value] = starting number to start count
17
    showcolumns = shows "ruler" at top
18
    */
19
    if ( $param = '' ) {
20
      return '<pre name="code" class="php">';
21
    } else {
22
      return '<pre name="code" class="php:' . $param . '">';
23
    }
24
  }
25

    
26
?>
(6-6/40)