Yii Framework Forum: [EXTENSION] Syntaxhighlighter - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[EXTENSION] Syntaxhighlighter Rate Topic: -----

#1 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 04 December 2010 - 08:05 AM

An application component which wraps the SyntaxHighlighter script by Alex Gorbachev has just been released! ;)

Link to extension:
syntaxhighlighter

Hope it proves useful to you.
"Less noise - more signal"
1

#2 User is offline   Antonio Ramirez 

  • Elite Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 1,448
  • Joined: 04-October 10

Posted 04 December 2010 - 11:36 AM

Thanks jacmoe
┬┐How long would it take for you to understand that you own nothing in this world?

www.ramirezcobos.com
www.2amigos.us
www.github.com/tonydspaniard
www.github.com/2amigos


Posted Image
0

#3 User is offline   jwerner 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 30
  • Joined: 04-December 08
  • Location:Germany

Posted 02 March 2011 - 04:41 AM

Nice extension!

My code snippets show formatted OK, however, I can't get any theme to work.

I have added this to my config/main.php:

    'components'=>array(
        ...
        'syntaxhighlighter' => array(
            'class' => 'ext.JMSyntaxHighlighter.JMSyntaxHighlighter',
            'theme' => 'Django'
	),


The generated css links show shCore.css and shThemeDjango.css in the rendered HTML code.

Thanks in advance + regards,

Joachim
1

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users