Windows 下 Apache 1.3 以 FastCGI 模式运行 PHP[转载]
2007-07-17 16:26
716 查看
使用 SyntaxHighlighter 3.0.83 对包含多行注释(/* .... */) 的 Java 代码进行语法着色时会将其后的所有代码当成多行注释进行着色。
修改 shBrushJava.js 可以解决这个问题。
找到:
修改为:
注意把处理文档注释的正则式放到处理多行注释的正则式前。
本文是使用 B3log Solo 从 简约设计の艺术 进行同步发布的
原文地址:http://b3log-88250.appspot.com/articles/2010/10/27/1288167868710.html
修改 shBrushJava.js 可以解决这个问题。
找到:
this.regexList = [ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments { regex: ////*([^/*][/s/S]*)?/*///gm, css: 'comments' }, // multiline comments { regex: ////*(?!/*//)/*[/s/S]*?/*///gm, css: 'preprocessor' }, // documentation comments { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings { regex: //b([/d]+(/.[/d]+)?|0x[a-f0-9]+)/b/gi, css: 'value' }, // numbers { regex: /(?!/@interface/b)/@[/$/w]+/b/g, css: 'color1' }, // annotation @anno { regex: //@interface/b/g, css: 'color2' }, // @interface keyword { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword ];
修改为:
this.regexList = [ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments { regex: ////*(?!/*//)/*[/s/S]*?/*///gm, css: 'preprocessor' }, // documentation comments { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings { regex: //b([/d]+(/.[/d]+)?|0x[a-f0-9]+)/b/gi, css: 'value' }, // numbers { regex: /(?!/@interface/b)/@[/$/w]+/b/g, css: 'color1' }, // annotation @anno { regex: //@interface/b/g, css: 'color2' }, // @interface keyword { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword ];
注意把处理文档注释的正则式放到处理多行注释的正则式前。
本文是使用 B3log Solo 从 简约设计の艺术 进行同步发布的
原文地址:http://b3log-88250.appspot.com/articles/2010/10/27/1288167868710.html
相关文章推荐
- Windows 下 Apache 1.3 以 FastCGI 模式运行 PHP
- Windows下Apache以FastCGI模式运行PHP
- Windows下Apache以FastCGI模式运行PHP
- Windows下IIS以FastCGI模式运行PHP
- windows 下apache 以fastcgi形式运行php
- windows中IIS7配置PHP(FastCGI模式-PHP在IIS下运行最高效最稳定的模式)
- php-运行模式-ISAPI,fastcgi,CGI,cli,apache
- 关于apache以fastcgi模式运行php的错误理解纠正
- windows中IIS7配置PHP(FastCGI模式-PHP在IIS下运行最高效最稳定的模式)
- Windows下PHP线程安全与非线程安全、Apache版本选择,及详解五种运行模式。
- Windows下的PHP开发环境搭建——PHP线程安全与非线程安全、Apache版本选择,及详解五种运行模式。
- Linux+php在apache上以fastcgi模式运行
- Windows下的PHP开发环境搭建——PHP线程安全与非线程安全、Apache版本选择,及详解五种运行模式。
- Windows下IIS以FastCGI模式运行PHP
- 转:Windows下的PHP开发环境搭建——PHP线程安全与非线程安全、Apache版本选择,及详解五种运行模式。
- windows 下apache 以fastcgi形式运行php
- Windows下的PHP开发环境搭建——PHP线程安全与非线程安全、Apache版本选择,及详解五种运行模式。
- Windows下的PHP开发环境搭建——PHP线程安全与非线程安全、Apache版本选择,及详解五种运行模式。
- php中fastcgi两种运行模式 spawn-fcgi和php-fpm
- windows下apache+fastCGI+PHP的安装与配置小计