X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=public%2Fassets%2Fplugins%2Fckeditor%2Fsamples%2Fold%2Fcodesnippet%2Fcodesnippet.html;h=b8b66ce9785fe433d603120bea5ddb389cef4719;hb=5d92478b1cb7479f39a43973775a6f6147fba8ac;hp=73c770b1518530f149585ee4519b82ef5156a2cb;hpb=6fdab3092eb5921e04b504e7c4b8d9a83a249fb1;p=motion.git diff --git a/public/assets/plugins/ckeditor/samples/old/codesnippet/codesnippet.html b/public/assets/plugins/ckeditor/samples/old/codesnippet/codesnippet.html index 73c770b..b8b66ce 100644 --- a/public/assets/plugins/ckeditor/samples/old/codesnippet/codesnippet.html +++ b/public/assets/plugins/ckeditor/samples/old/codesnippet/codesnippet.html @@ -1,236 +1,236 @@ - - - - - - Code Snippet — CKEditor Sample - - - - - - - - - - -

- CKEditor Samples » Code Snippet Plugin -

-
- This sample is not maintained anymore. Check out its brand new version in CKEditor SDK. -
- -
-

- This editor is using the Code Snippet plugin which introduces beautiful code snippets. - By default the codesnippet plugin depends on the built-in client-side syntax highlighting - library highlight.js. -

-

- You can adjust the appearance of code snippets using the codeSnippet_theme configuration variable - (see available themes). -

-

- Select theme: -

-

- The CKEditor instance below was created by using the following configuration settings: -

- -
-CKEDITOR.replace( 'editor1', {
-	extraPlugins: 'codesnippet',
-	codeSnippet_theme: 'monokai_sublime'
-} );
-
- -

- Please note that this plugin is not compatible with Internet Explorer 8. -

-
- - - -

Inline editor

- -
-

- The following sample shows the Code Snippet plugin running inside - an inline CKEditor instance. The CKEditor instance below was created by using the following configuration settings: -

- -
-CKEDITOR.inline( 'editable', {
-	extraPlugins: 'codesnippet'
-} );
-
- -

- Note: The highlight.js themes - must be loaded manually to be applied inside an inline editor instance, as the - codeSnippet_theme setting will not work in that case. - You need to include the stylesheet in the <head> section of the page, for example: -

- -
-<head>
-	...
-	<link href="path/to/highlight.js/styles/monokai_sublime.css" rel="stylesheet">
-</head>
-
- -
- -
- -

JavaScript code:

- -
function isEmpty( object ) {
-	for ( var i in object ) {
-		if ( object.hasOwnProperty( i ) )
-			return false;
-	}
-	return true;
-}
- -

SQL query:

- -
SELECT cust.id, cust.name, loc.city FROM cust LEFT JOIN loc ON ( cust.loc_id = loc.id ) WHERE cust.type IN ( 1, 2 );
- -

Unknown markup:

- -
 ________________
-/                \
-| How about moo? |  ^__^
-\________________/  (oo)\_______
-                  \ (__)\       )\/\
-                        ||----w |
-                        ||     ||
-
-
- -

Server-side Highlighting and Custom Highlighting Engines

- -

- The Code Snippet GeSHi plugin is an - extension of the Code Snippet plugin which uses a server-side highligter. -

- -

- It also is possible to replace the default highlighter with any library using - the Highlighter API - and the editor.plugins.codesnippet.setHighlighter() method. -

- - - - - - + + + + + + Code Snippet — CKEditor Sample + + + + + + + + + + +

+ CKEditor Samples » Code Snippet Plugin +

+
+ This sample is not maintained anymore. Check out its brand new version in CKEditor SDK. +
+ +
+

+ This editor is using the Code Snippet plugin which introduces beautiful code snippets. + By default the codesnippet plugin depends on the built-in client-side syntax highlighting + library highlight.js. +

+

+ You can adjust the appearance of code snippets using the codeSnippet_theme configuration variable + (see available themes). +

+

+ Select theme: +

+

+ The CKEditor instance below was created by using the following configuration settings: +

+ +
+CKEDITOR.replace( 'editor1', {
+	extraPlugins: 'codesnippet',
+	codeSnippet_theme: 'monokai_sublime'
+} );
+
+ +

+ Please note that this plugin is not compatible with Internet Explorer 8. +

+
+ + + +

Inline editor

+ +
+

+ The following sample shows the Code Snippet plugin running inside + an inline CKEditor instance. The CKEditor instance below was created by using the following configuration settings: +

+ +
+CKEDITOR.inline( 'editable', {
+	extraPlugins: 'codesnippet'
+} );
+
+ +

+ Note: The highlight.js themes + must be loaded manually to be applied inside an inline editor instance, as the + codeSnippet_theme setting will not work in that case. + You need to include the stylesheet in the <head> section of the page, for example: +

+ +
+<head>
+	...
+	<link href="path/to/highlight.js/styles/monokai_sublime.css" rel="stylesheet">
+</head>
+
+ +
+ +
+ +

JavaScript code:

+ +
function isEmpty( object ) {
+	for ( var i in object ) {
+		if ( object.hasOwnProperty( i ) )
+			return false;
+	}
+	return true;
+}
+ +

SQL query:

+ +
SELECT cust.id, cust.name, loc.city FROM cust LEFT JOIN loc ON ( cust.loc_id = loc.id ) WHERE cust.type IN ( 1, 2 );
+ +

Unknown markup:

+ +
 ________________
+/                \
+| How about moo? |  ^__^
+\________________/  (oo)\_______
+                  \ (__)\       )\/\
+                        ||----w |
+                        ||     ||
+
+
+ +

Server-side Highlighting and Custom Highlighting Engines

+ +

+ The Code Snippet GeSHi plugin is an + extension of the Code Snippet plugin which uses a server-side highligter. +

+ +

+ It also is possible to replace the default highlighter with any library using + the Highlighter API + and the editor.plugins.codesnippet.setHighlighter() method. +

+ + + + + +