/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to CodeViewer/codeviewer.php

  • Committer: elof.bigestans at gmail
  • Date: 2013-04-03 09:09:01 UTC
  • mto: (4.7.10 GammaBear)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: elof.bigestans@gmail.com-20130403090901-yrjkjam8tip1mt9j
* Re-structured according to new folder structure - moved media out, moved things in /Codeviewer/Codeviewer to /Codeviewer
* Renamed according to naming conventions
* Added examples displaying usage of the module

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<!DOCTYPE html>
2
2
<html>
3
3
        <head>
4
 
                <link rel="stylesheet" type="text/css" href="showcode.css">
5
 
                <script type="text/javascript" src="showcode.js"></script>
 
4
                <link rel="stylesheet" type="text/css" href="codeviewer.css">
 
5
                <script type="text/javascript" src="codeviewer.js"></script>
6
6
        </head>
7
7
        <body>
8
8
<?php
9
 
        include("showcode.php");
 
9
        include("codeviewer_functions.php");
10
10
        
11
 
        menulayout("innan.php","efter.php","test2.txt","Example 1: Execution of AJAX API","test.txt", "test2.txt");
 
11
        menulayout("innan.php","efter.php","example_code.txt","Example 1: Execution of AJAX API","example_code.txt", "example_code_description.txt");
12
12
        
13
13
        $interestingrows = array(
14
 
                array(1,5,"Ajax function"),
15
 
                array(7,8,"Ajax return function")
 
14
                array(6,9,"Interesting row array"),
 
15
                array(11,14,"Keywords")
16
16
        );
17
17
 
18
18
        $keywords = array(
21
21
        );
22
22
 
23
23
        $highlight = array(
24
 
                array("{", "highlightnormal"),
25
 
                array("}", "highlightnormal"),
26
 
                array("function", "highlightspecial")
 
24
                array("array", "highlightnormal"),
 
25
                array("showfile", "highlightspecial")
27
26
        );
28
27
 
29
 
        showfile($interestingrows,$keywords,$highlight, "test.txt");
 
28
        showfile($interestingrows,$keywords,$highlight, "example_code.txt");
30
29
        menulayoutend();
31
30
?>
32
31
</body>