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

SmartAss Highlighter

설명

  • SmartAss Highlighter is a simple and easy to use code prettifier for wordpress.
  • The code between <pre> and </pre> tags is highlighted.
  • Almost all languages are supported, no need to mention the code language.
  • Customizable for each post, use [highlighter] shortcode to enable for particular post.
  • To change theme, modify highlighter.css in the plugin directory.
  • Button is available for both editor modes, i.e., Visual and Text editor.
  • Line Numbers are ON by default but can be turned OFF by using modified shortcode [highlighter line=0]
  • IMPORTANT – This plugin would not be updated very frequently, updates (if required) may delay

Basic Usage

  1. Switch to Text Only Mode, Go to “Edit my profile” and then check “Disable the visual editor when writing”
  2. Create new post
  3. Put your code in between <pre> and </pre>
  4. MUST use shortcode [highlighter] to activate the SmartAss-Highlighter
  5. Line numbers are on by default, but can be switched off by using [highlighter line=0]
  6. Note: Only the Posts having shortcode [highlighter] will be highlighted. Your previous posts won’t be affected.
  7. Do NOT use html codes for special characters ( &lt; or &gt; ), Directly use < or >

More Information

For more information of this plugin, please visit: Plugin Homepage.

스크린샷

  • Visual editor screenshot
  • Text only editor screenshot
  • Sample highlighted output with line numbers
  • Sample highlighted output without line numbers
  • Code button

설치

  1. Download and extract "SmartAss-Highlighter.zip" to "wp-content/plugins/"
  2. Activate the plugin through the “Plugins” menu in WordPress
  3. Put your code in between <pre> and </pre> (It provides a code button in the editor)
  4. MUST use shortcode [highlighter] to activate the SmartAss-Highlighter
  5. Line numbers are on by default, but can be switched off by using [highlighter line=0]

FAQ

Which programming languages are supported?

It supports all programming languages. No need to mention the language of the code anywhere

I don’t like the style and theme colors of this plugin. How to change the colors?

Edit the file highlighter.css to change the colors. See the documentation of CSS and class details at Google Code Prettify

Will this highlighter make my webpage slow?

SmartAss Highlighter uses two files in output- highlighter.js and highlighter.css. These two files have total size of 17KB but If you web server supports compression then the reduced load will be of 7KB. However, If your server does not support compression or you dont have control over it, please visit plugin page.

What is different about this highlighter?
  • It uses a shortcode to trigger, so user can control highlighting from post to post.
  • The extra code/libraries are added in footer, so that you page is loaded first and highlighting is done later asynchronously
  • No option menu

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

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

기여자

자국어로 “SmartAss Highlighter”(을)를 번역하세요.

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

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

변경이력

1.0

  • First release