이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

CC-Syntax-Highlight

설명

The CC-Syntax-Highlight plugin supports syntax highlighting of Posts, Pages, and any public Custom Post Types.
It uses highlight.js or google-code-prettify libraries.
Additionally it can use the clipboard.js library to add a button that copies text to the clipboard and highlightjs-line-numbers.js plugin to add line numbers.
It is delivered with support for shortcode (default

 - you can change it on the settings page) which automatically converts all special characters to HTML entities.
This plugin is compatible with Multisite WordPress installations.</p>

<h4>How does it work?</h4>

<ol>
<li>Go to the 'Settings &gt; Syntax Highlight' page, select your preferred options and save them.</li>
<li>Simply add the source code to your post (or other selected public Custom Post Type) wrapped with:
&lt;pre&gt;&lt;code&gt;Your source code&lt;/code&gt;&lt;/pre&gt;
or if you would like to automatically convert all special characters to HTML entities, use shortcode wrapper instead (default [code] - you can change it on the settings page):
&lt;pre&gt;[code]Your source code

</pre>

Plugin’s js scripts and css styles files only load if the source code occurs on displaying page.

스크린샷

  • CC-Syntax-Highlight Settings - Visit the 'Settings > Syntax Highlight' page, select your preferred options and save them.

설치

From your WordPress Dashboard

  1. Go to ‘Plugins > Add New’
  2. Search for ‘CC-Syntax-Highlight’
  3. Activate the plugin from the Plugin section on your WordPress Dashboard.

From WordPress.org

  1. Download ‘CC-Syntax-Highlight’.
  2. Upload the ‘cc-syntax-highlight’ directory to your ‘/wp-content/plugins/’ directory using your favorite method (ftp, sftp, scp, etc…)
  3. Activate the plugin from the Plugin section in your WordPress Dashboard.

Once Activated

  1. Visit the ‘Settings > Syntax Highlight’ page, select your preferred options and save them.

Multisite

The plugin can be activated and used for just about any use case.

  • Activate at the site level to load the plugin on that site only.
  • Activate at the network level for full integration with all sites in your network (this is the most common type of multisite installation).

후기

2017년 3월 28일
I was surprised how hard it was to find a plugin with a nice theme (Github) which also has a custom post type selection and is super lightweight (not loading 4+ files like some do). It also is responsive, making this plugin pretty much perfect. Just hope the dev keeps it up to date.
모든 2 평가 읽기

기여자 & 개발자

“CC-Syntax-Highlight”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “CC-Syntax-Highlight”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.2.3

Release date: 16.03.2022

  • Added PHP 8.0 support.

1.2.2

Release date: 22.10.2019

  • Fixed conflict with core clipboard wp script.

1.2.1

Release date: 15.10.2019

  • Added highlightjs-line-numbers.js plugin in 2.7.0 version.
  • Updated highlight.js script to 9.15.10 version.

1.2.0

Release date: 15.06.2018

  • Fixed issue with wrong brackets interpretation.

1.1.0

Release date: 05.12.2016

  • Added support for “copy-to-clipboard” feature by using the clipboard.js library.

1.0.1

Release date: 01.10.2016

  • Corrected readme.txt file.

1.0.0

Release date: 27.09.2016

  • First stable version of the plugin.