Fóruns

Início » Liferay Portal » English » 2. Using Liferay » General

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Tariq Ahmed
Code Syntax Highligher / Code Formatting in posts
4 de Abril de 2011 09:29
Resposta

Tariq Ahmed

Ranking: New Member

Mensagens: 7

Data de entrada: 1 de Abril de 2011

Mensagens recentes

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.
Hitoshi Ozawa
RE: Code Syntax Highligher / Code Formatting in posts
4 de Abril de 2011 15:43
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 7990

Data de entrada: 23 de Março de 2010

Mensagens recentes

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.
Tariq Ahmed
RE: Code Syntax Highligher / Code Formatting in posts
5 de Abril de 2011 16:22
Resposta

Tariq Ahmed

Ranking: New Member

Mensagens: 7

Data de entrada: 1 de Abril de 2011

Mensagens recentes

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.



SELECT * FROM BLAH...


Would then format it using the SQL syntax highlighter.
Tomi Savolainen
RE: Code Syntax Highligher / Code Formatting in posts
16 de Novembro de 2012 06:03
Resposta

Tomi Savolainen

Ranking: New Member

Mensagens: 6

Data de entrada: 13 de Outubro de 2008

Mensagens recentes

I would like to see something similar as well.
Hitoshi Ozawa
RE: Code Syntax Highligher / Code Formatting in posts
16 de Novembro de 2012 07:09
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 7990

Data de entrada: 23 de Março de 2010

Mensagens recentes

Sorry but I haven't seen any.