掲示板
Code Syntax Highligher / Code Formatting in posts
13年前 に Tariq Ahmed によって更新されました。
Code Syntax Highligher / Code Formatting in posts
New Member 投稿: 7 参加年月日: 11/04/02 最新の投稿
Hi there. Is there a plug-in out there that adds in code syntax highlighting. I didn't see it under the official gallery, but thinking there might be a third party one out there? E.g.:
http://alexgorbatchev.com/SyntaxHighlighter/
Thx.
http://alexgorbatchev.com/SyntaxHighlighter/
Thx.
13年前 に Hitoshi Ozawa によって更新されました。
RE: Code Syntax Highligher / Code Formatting in posts
Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿Hi there. Is there a plug-in out there that adds in code syntax highlighting. I didn't see it under the official gallery, but thinking there might be a third party one out there?
Do you mean an addition to the current CKEditor used in Web Content portlet and Blog portlet? Or a portlet to display javascript codes with syntax highlighted?
If the former, it may be better to ask the CKEditor project.
13年前 に Tariq Ahmed によって更新されました。
RE: Code Syntax Highligher / Code Formatting in posts
New Member 投稿: 7 参加年月日: 11/04/02 最新の投稿
Not in the editor, but so that code snippets when displayed in a Blog or Web Content portlet are colorized/formatted.
E.g. are here two blog posting examples that use a code syntax highlighter to format/colorize code snippets similar to how they'd be presented within an IDE:
http://www.bennadel.com/blog/2161-Exploring-ColdFusion-9-Implicit-Synthesized-Getter-And-Setter-Behavior.htm
http://www.coldfusionjedi.com/index.cfm/2011/4/4/ColdFusion-Quickie-Finding-all-the-credit-card-numbers-in-a-string
They all use third party plugins in the form of JavaScript and CSS to accomplish it, and they're generally triggered off the JavaScript function detecting a certain tag. E.g.
[sql]
SELECT * FROM BLAH...
[/sql]
Would then format it using the SQL syntax highlighter.
E.g. are here two blog posting examples that use a code syntax highlighter to format/colorize code snippets similar to how they'd be presented within an IDE:
http://www.bennadel.com/blog/2161-Exploring-ColdFusion-9-Implicit-Synthesized-Getter-And-Setter-Behavior.htm
http://www.coldfusionjedi.com/index.cfm/2011/4/4/ColdFusion-Quickie-Finding-all-the-credit-card-numbers-in-a-string
They all use third party plugins in the form of JavaScript and CSS to accomplish it, and they're generally triggered off the JavaScript function detecting a certain tag. E.g.
[sql]
SELECT * FROM BLAH...
[/sql]
Would then format it using the SQL syntax highlighter.
11年前 に Tomi Savolainen によって更新されました。
RE: Code Syntax Highligher / Code Formatting in posts
New Member 投稿: 6 参加年月日: 08/10/13 最新の投稿
I would like to see something similar as well.
11年前 に Hitoshi Ozawa によって更新されました。
RE: Code Syntax Highligher / Code Formatting in posts
Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿
Sorry but I haven't seen any.