Author: Eric.Wang 저자 : eric.wang Plugin URL: http://wordpress.org/extend/plugins/wp-codebox/ 플러그 접속 홈페이지 : http://wordpress.org/extend/plugins/wp-codebox/ Tags: syntax highlighting, syntax, highlight, code, formatting 태그 : 구문 강조 구문을 강조, 코드, 서식 Requires at least: 2.0 필요한 최소한 : 2.0 Tested up to: 2.5.1 테스트를 최대 : 2.5.1 Stable tag: 1.2.3 안정적인 태그 : 1.2.3 Download 다운로드 | Donate for this plugin development, Thanks! 이 플러그인에 대한 기부 개발, 감사합니다! |
== Description == == 설명 ==
WP-CODEBOX代码高亮插件,支持多种语言、代码下载、复制到剪贴板、代码框收放及后台默认属性设置。 백린 - codebox 코드를 강조 플러그 -에서 여러 언어를 지원, 코드 다운로드, 복사를 클립 보드에, 코드 상자에 shoufang과 배경의 기본 속성을 설정합니다. 本插件还在持续开发中,欢迎使用及报告bugs. 의 지속 발전을 플러그 - 재고는 여전히 사용하고 버그 리포트에 오신 것을 환영합니다.
Wp-CodeBox provides clean syntax highlighting and advanced feature for embedding source code within pages or posts. It support a wide range of popular languages highlighting with line numbers, code download, Copy to clipboard, collapse codebox, automatic keywords link to API manual and maintains formatting while copying snippets of code from the browser. 클린 구문을 강조하는 백린 - codebox 제공과 고급 기능에 대한 소스 코드를 페이지 또는 게시물을 포함합니다. 그것 지원하는 광범위한 인기있는 언어로 하이라이트를 줄 번호, 코드를 다운로드, 복사하여 클립 보드로, 축소 codebox, 자동 키워드를 링크를 API를 매뉴얼 및 유지 관리 내용 미리보기의 코드를 복사하는 동안 브라우저에서 서식합니다.
It's provide simple background configuration for highlighter style/formatting customization. 그것은 단순한 배경 구성을 제공합니다 하이라이트 스타일 / 서식을 사용자 정의합니다.
Since the plugin is developing, in the future it will support more options.(CSS option,Keyword display style,Auto Caps/Nocaps,Case Sensitivity etc. ) 이후로 플러그인이 개발, 미래에 더 많은 옵션을 지원합니다. (전투 근무 지원 옵션을 키워드를 표시 스타일, 자동차 모자 / nocaps, 대소문자 구분 등)
== Basic Usage == == 기본 사용법 ==
Wrap code blocks with `<pre lang="LANGUAGE" line="1" file="download.txt" colla=" ">` and `</pre>` 랩 코드 블록 <pre lang="language" line="1" file="download.txt"`colla=" ">`와`</ 사전>`
Possible Parameters: 가능한 매개 변수 :
`LANGUAGE` is a [ GeSHi ] supported language syntax; `언어`가 [geshi] 지원되는 언어 구문을;
`file` will create a code downloading attribute.; `파일`의 코드를 다운로드 특성이 될 것으로 보입니다.;
`line="n"` will hide the single codebox; `선 = "n"`을 숨기기 위해 단일 codebox;
`colla=" /-"` will expand/collapse the codebox. `콜라 =" /-"`가 확장 / 축소하여 codebox합니다.
`line,file,colla` is optional. `라인, 파일, 콜라`는 선택 사항입니다.
== Installation == == 설치 ==
1. Upload WP-CodeBox.zip to your Wordpress plugins directory, usually `wp-content/plugins/` and unzip the file. It will create a `wp-content/plugins/WP-CodeBox/` directory. 1. 올리기 백린 - codebox.zip wordpress 플러그인 디렉토리에, 보통`wp-content/plugins /`하고 파일을 압축 해제합니다. wp-content/plugins/wp-codebox이 만들어집니다`/`디렉토리합니다.
2. Activate the plugin through the 'Plugins' menu in WordPress. 2. 활성화를 통해 플러그인의 '플러그인'메뉴에서 wordpress합니다.
3. Go to Option->Wp-CodeBox set default setting. 3. 이동 옵션 -> 백린 - codebox 기본 설정을 설정합니다.
4. Create a post/page that contains a code snippet following the [ proper usage syntax ] 4. 만들려 포스트 / 페이지가 포함되어있는 코드 스니펫을 다음의 [올바른 사용법 구문]
== Frequently Asked Questions == 자주 묻는 질문 == ==
When activate the plugin, popup the error: "Fatal error: Cannot redeclare class GeSHi in ##/wp-content/plugins/wp-codebox/geshi/geshi.php on line 158"? 플러그인을 활성화하면, 팝업 광고를 오류 : "치명적 오류 : 재 클래스 geshi 수없습니다 # # / wp-content/plugins/wp-codebox/geshi/geshi.php 행에 158"?
Answer:disactivate other Gashi based syntax highlighter plugin first. 답변 : 엄청난 다른 플러그 접속식 첫 번째 gashi 기반 구문을 하이라이트합니다.
== Screenshots == == == 화면 캡처
1. PHP, no line numbers. 1. php, 지역 행 번호합니다.
< div id = "foo" > <?php function foo ( ) { echo "Hello World! \\ n" ; } for ( \ $i = 0 ; \ $i < 10 $i ) { foo ( ) ; } ?> </ div > <div 번호 = "foo"> <함수 기능을 foo () (에코 "여러분, 안녕하세요! \ \ n";)을 (\ $ 전 = 0; \ $ 나는 <10 $ 나는 ) (foo (); )?> </ 사단> |
2. Java, with line numbers, collapse codebox. 2. 자바,과 행 번호, 붕괴 codebox합니다.
1 2 3 4 5 1 2 3 4 5 | public class Hello { public static void main ( String [ ] args ) { System . out . println ( "Hello World!" ) ; } } 공용 클래스 안녕하세요 (공공 정적 무효 메인 (문자열 [] args) (system. 아웃합니다. println ( "여러분, 안녕하세요 !");)) |
3. Ruby, with line numbers starting at 18,downloading feature. 3. 루비, 시작과 줄 번호 18, 다운로드 기능을합니다.
18 19 20 21 22 18 19 20 21 22 | class Example def example ( arg1 ) return "Hello: " arg1. to_s end end 클래스 예제 def 예 (arg1) 반환 "안녕하세요 :" arg1합니다. to_s 최종 종료 |
4. Administration interface in WordPress 2. 4. 관리 인터페이스에서 wordpress 2.
== Usage == == 사용법 ==
**Example 1: PHP, no line numbers** ** 예제 1 : php, 지역 행 번호 **
<pre lang="php"> <pre lang="php">
<div id="foo"> <div id="foo">
<?php <함수
function foo() { 함수 foo () (
echo "Hello World!\\n"; 에코 "여러분, 안녕하세요! \ \ n";
} )
for (\$i = 0; \$i < 10 $i ) { 을 (\ $ 전 = 0; \ $ 나는 <10 $ 나는 ) (
foo(); foo ();
} )
?> «>
</div> </ 사단>
</pre> </ 이전>
**Example 2: Java, with line numbers, collapse codebox** ** 예 2 : 자바,과 행 번호, 붕괴 codebox **
<pre lang="java" line="1" colla="-"> <pre lang="java" line="1" colla="-">
public class Hello { 공용 클래스 안녕하세요 (
public static void main(String[] args) { 공공 정적 무효 메인 (문자열 [] args) (
System.out.println("Hello World!"); system.out.println ( "여러분, 안녕하세요!");
} )
} )
</pre> </ 이전>
**Example 3: Ruby, with line numbers starting at 18, code downloading(ruby.txt)** ** 예제 3 : 루비, 시작과 줄 번호 18, 코드를 다운로드 (ruby.txt) **
<pre lang="ruby" line="18" file="ruby.txt"> <pre lang="ruby" line="18" file="ruby.txt">
class Example 클래스 예제
def example(arg1) def 예 (arg1)
return "Hello: " arg1.to_s 반환 "안녕하세요 :" arg1.to_s
end 끝
end 끝
</pre> </ 이전>
== Supported Languages == 지원되는 언어 == ==
The following languages are supported in the `lang` attribute: 다음과 같은 언어가 지원됩니다는`랭`특성 :
Actionscript , ADA , Apache Log , AppleScript , ASM , ASP , AutoIT , Backus-Naur form , Bash , BlitzBasic , C , C for Macs , C# , C , CAD DCL , CadLisp , CFDG , CFDG , ColdFusion , CSS , Delphi , DIV , DOS , Eiffel , Fortran , Fortran , FreeBasic , GML , Groovy , HTML , Inno , IO , Java , Java 5 , Javascript , LaTeX , Lisp , Lua , Microprocessor ASM , mIRC , MySQL , NSIS , Objective C , OCaml , OpenOffice BASIC , Oracle 8 SQL , Pascal , Perl , PHP , PL/SQL , Python , Q(uick)BASIC , robots.txt , Ruby , SAS , Scheme , SDLBasic , Smalltalk , Smarty , SQL , T-SQL , TCL , thinBasic , Uno IDL , VB.NET , Visual BASIC , Visual Fox Pro , Winbatch , X , XML , Z80 ASM actionscript, 에이다, 아파치 로그, AppleScript로, 어셈블리어, asp, autoit, 박카스 - 나우르 폼, 배쉬, blitzbasic, c, c에 대한 외투, c #, c , cad dcl, cadlisp, cfdg, cfdg,. ColdFusion, 전투 근무 지원, delphi, 사단 , 도스, 에펠, 포트란, 포트란, freebasic, gml, 홈, 모바일, 이노, 입, 자바, 자바 5, 자바 스크립트, 고무, 리스프, lua, 마이크로 프로세서 어셈블리어, mirc, mysql, nsis, 객관 c, ocaml, 열 기본적인 , 오라클 8 sql, 파스칼, 펄, php, pl / sql, 파이썬, 큐 (uick) 기본, robots.txt, 루비, sas, 구성표 sdlbasic, 스몰 토크, 잘난척, sql, t - sql, tcl, thinbasic, 은오 idl, vb.net, 영상 기초, 영상 폭스 직업, winbatch, 엑스 , xml, z80 어셈블리어
==Release Notes== == 릴리즈 노트 ==
**1.0** : First internal release; Uses GeSHi v1.0.7.20; ** 1.0 ** : 첫 번째 내부 릴리스;을 사용 geshi v1.0.7.20;
**1.0.1** : Add View Code AJAX feature; ** 1.0.1 ** : 장바구니에서 코드보기 기능을 ajax;
**1.1** : Add simple background configuration for highlighter style/formatting customization; ** 1.1 ** : 장바구니 단순한 배경 구성을 하이라이트 스타일 / 서식을 사용자 정의;
**1.2** : css tuning and option i18n compatible; ** 1.2 ** : 전투 근무 지원 튜닝 및 옵션 i18n 호환;
**1.2.1** : Uses GeSHi v1.0.7.21; ** 1.2.1 ** : 사용 geshi v1.0.7.21;
**1.2.2** : WP 2.5 compatible; ** 1.2.2 ** : 백린 2.5 호환;
**1.2.2.1** : Correct small bugs;Improve the css layout to stick the code header; Contributor:YiXia. ** 1.2.2.1 ** : 올바른 작은 버그; 개선하는 전투 근무 지원 레이아웃을 스틱의 코드를 헤더; 기고자 : yixia합니다.
**1.2.3** : Uses GeSHi v1.0.7.22, add the keywords link to API manual option. ** 1.2.3 ** : geshi v1.0.7.22을 사용, 추가의 키워드 링크를 API를 수동으로 선택합니다.
== Donate == == 기부 ==
== Future Feature== == 미래의 기능을 ==
It will provide backgroud option for highlighter style customization(CSS option,keyword display style,Auto Caps/Nocaps,Case Sensitivity etc.) in the future version. 그것은 backgroud 옵션을 제공합니다 하이라이트 스타일 사용자 정의 (전투 근무 지원 옵션을 키워드를 표시 스타일, 자동차 모자 / nocaps, 대소문자 구분 등)의 향후 버전.
    ( 7 votes, average: 5 out of 5) (7 표, 평균 : 5 5 개 중에) Loading ... 로딩 중 ... -欢迎为本文评级 -이 논문 평가에 오신 것을 환영합니다 | |
相关日志 관련 로그 | 本文读者也关心以下内容: 이 종이, 독자 또한 다음과 같은 우려 : |
03月3rd, 2008 03月3 층, 2008 作者: eric | WordPress | Trackback ? | 46 评论 | 저자 : 에릭 | wordpress | 트랙백? | 46 코멘트 |
| 3,761 views | 3761 조회
남길 회신