Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Tariq Ahmed
Code Syntax Highligher / Code Formatting in posts
4 de abril de 2011 9:29
Respuesta

Tariq Ahmed

Ranking: New Member

Mensajes: 7

Fecha de incorporación: 1 de abril de 2011

Mensajes recientes

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
Respuesta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensajes: 7990

Fecha de incorporación: 23 de marzo de 2010

Mensajes recientes

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
Respuesta

Tariq Ahmed

Ranking: New Member

Mensajes: 7

Fecha de incorporación: 1 de abril de 2011

Mensajes recientes

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 noviembre de 2012 6:03
Respuesta

Tomi Savolainen

Ranking: New Member

Mensajes: 6

Fecha de incorporación: 13 de octubre de 2008

Mensajes recientes

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

Hitoshi Ozawa

Ranking: Liferay Legend

Mensajes: 7990

Fecha de incorporación: 23 de marzo de 2010

Mensajes recientes

Sorry but I haven't seen any.