Skip to content

Commit

Permalink
Item9478: downgrading txt file to latin1
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Dec 4, 2014
1 parent cda4427 commit 6be42c3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,5 +1,7 @@
*.gz
.swp
*,v
igp_*
git
pub/System/DpSyntaxHighlighterPlugin/shInit.js
DpSyntaxHighlighterPlugin.md5
Expand Down
34 changes: 18 additions & 16 deletions data/System/DpSyntaxHighlighterPlugin.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" date="1417701005" format="1.1" version="1"}%
%META:TOPICINFO{author="ProjectContributor" date="1417702109" format="1.1" version="1"}%
---+!! !DpSyntaxHighlighterPlugin
%SHORTDESCRIPTION%

Expand Down Expand Up @@ -106,25 +106,25 @@ If the plugin is installed correcty, the following should be rendered:

%CODE{"php" highlight="2,5" autolink="off"}%
/***********************************
 ** Multiline block comments
 **********************************/
 
** Multiline block comments
**********************************/

$stringWithUrl = "http://alexgorbatchev.com";
$stringWithUrl = 'hello world';
 
ob_start("parseOutputBuffer");      // Start Code Buffering

ob_start("parseOutputBuffer"); // Start Code Buffering
session_start();
 

function parseOutputBuffer($buf) {
    global $portal_small_code, $portal_gzcompress;
    global $PHP_SELF, $HTTP_ACCEPT_ENCODING;
 
    // cleaning out the code.
    if($portal_small_code && !$portal_gzcompress) {
        $buf = str_replace("    ", "", $buf);
        $buf = str_replace("\n", "", $buf);
        $buf = str_replace(chr(13), "", $buf);
    }
global $portal_small_code, $portal_gzcompress;
global $PHP_SELF, $HTTP_ACCEPT_ENCODING;

// cleaning out the code.
if($portal_small_code && !$portal_gzcompress) {
$buf = str_replace(" ", "", $buf);
$buf = str_replace("\n", "", $buf);
$buf = str_replace(chr(13), "", $buf);
}
}
%ENDCODE%

Expand Down Expand Up @@ -160,3 +160,5 @@ function parseOutputBuffer($buf) {
| 14046 | Initial version -- Foswiki:Main.AndrewJones |
| Plugin Home: | http://foswiki.org/Extensions/DpSyntaxHighlighterPlugin |
| Support: | http://foswiki.org/Support/DpSyntaxHighlighterPlugin |

%META:FILEATTACHMENT{name="screenshot.png" attachment="screenshot.png" attr="h" comment="" date="1417702109" size="55405" user="ProjectContributor" version="1"}%

0 comments on commit 6be42c3

Please sign in to comment.