Linux 软件免费装
Banner图

iG:Syntax Hiliter

开发者 amit
更新时间 2022年5月7日 06:35
PHP版本: 7.4.0 及以上
WordPress版本: 5.9
版权: GPLv2 or later
版权网址: 版权信息

标签

html css javascript php code code highlighter syntax highlighter source code mysql

下载

5.1

详情介绍:

iG:Syntax Hiliter allows you to post source code to your site with syntax highlighting and formatting (as seen in code editors, IDEs). You can paste the code as is from your code editor or IDE and this plugin will take care of all the code colouring and preserve your formatting. It uses the GeSHi library to colourize your code and supports over a 100 programming languages. Most common languages are included with the plugin and it includes drop in support for more languages used by GeSHi. NOTE : For fast results and less load on your server, you should have a cache plugin installed. That way the plugin won't have to parse the code blocks on a post every time its loaded in browser. Minimum Requirements Pull requests are welcome on Github. Github: https://github.com/coolamit/ig-syntax-hiliter/

安装:

UPGRADING from v4.0 or later Just click update now link below the plugin listing on the plugins page in your wp-admin. That's quite easy!! UPGRADING from v3.x Just deactivate plugin in WordPress admin, delete the syntax_hilite.php file & ig_syntax_hilite directory from plugins folder and follow the installation process below. That's quite easy!! UPGRADING from v2.1 or lower Just deactivate plugin in WordPress admin, delete the syntax_hilite.php and geshi.php files & geshi directory from plugins folder and follow the installation process below. That's quite easy!! Installing The Plugin
  1. Login to your WordPress wp-admin area.
  2. Click Add New in the Plugins menu on left.
  3. Enter iG:Syntax Hiliter in the search bar on the right on the page that opens and press Enter key.
  4. WordPress would show the iG:Syntax Hiliter plugin with install button, click that to install the plugin.
  5. Click on Activate Plugin link on the page that opens after the plugin has been installed successfully.
See Also: "Installing Plugins" article on the WP Codex

屏幕截图:

  • Settings page of the plugin where default options can be set for plugin
  • Example display of syntax highlighted PHP code
  • Example display of plain text view of some PHP code

升级注意事项:

5.1 Major refactor of plugin code for compatibility with PHP 7.4.0 and above.

其他记录:

Documentation on plugin usage and configuration

常见问题:

My code looks all odd, characters appear as HTML entities. Why is your plugin screwing up my code?

If you are using the WYSIWYG (rich text) editor to compose your post then that is what's messing things up for you. iG:Syntax Hiliter does not support composing posts and posting code using WYSIWYG at present. If you are not using WYSIWYG editor and still have same issue, please report it.

I see some code that I can improve. Do you accept pull requests?

By all means, feel free to submit a pull request.

I want XYZ feature. Can you implement it?

Please feel free to suggest a new feature. Its inclusion might be speedier if you can provide the code to make it work.

更新日志:

v5.1 v5.0 v4.3 v4.2 v4.1 v4.0 v3.5 v3.1 v3.0 v2.01 v2.0 Final v2.0 Preview v1.1 v1.0