Syntax Highlighter extension

Discuss PivotX 2.0.x extensions here, and view extensions that are available for download.

Re: Syntax Highlighter extension

Postby leandrocpo » Sat May 10, 2014 5:30 pm

leandrocpo
 
Posts: 6
Joined: Thu May 08, 2014 2:01 pm
Location: Brazil

Re: Syntax Highlighter extension

Postby Harm10 » Sat May 10, 2014 6:41 pm

I guess you didn't look right for errors in the console because you have this line in your code:
Code: Select all
<script type='text/javascript' src='/pivotx/templates/skinny/js/menu_jquery.js'></script>

with gives a jQuery error. It could be this breaks the extension from working. Please correct that first by replacing the $ characters in the js file by jQuery statements.
PivotX wants jQuery to run in non-conflict mode.
So
Code: Select all
$( document ).ready(function() {
will become
Code: Select all
jQuery( document ).ready(function() {


BTW what is this code? As far as I know it is not part of PivotX or its extensions.
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2010
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Syntax Highlighter extension

Postby leandrocpo » Sat May 10, 2014 8:31 pm

I found the error in the style.css of template skinny.

Where:
Code: Select all
code {
    display: block;
    padding: 5px;
    border: 1px solid #e6e6e6;
}


Update:
Code: Select all
code {
    padding: 5px;
    border: 1px solid #e6e6e6;
}
leandrocpo
 
Posts: 6
Joined: Thu May 08, 2014 2:01 pm
Location: Brazil

Re: Syntax Highlighter extension

Postby Harm10 » Sat May 10, 2014 11:10 pm

Good for you! I see you also solved the jQuery error.

Weird that this css line influences the working of this extension.
You would assume this its styles contain a more specialised line for the code tag.
I will have a look why this happens and if needed will change the extension.
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2010
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Syntax Highlighter extension

Postby Harm10 » Mon May 26, 2014 5:58 pm

Just released: version 0.2 (see log in extension zip for changes)
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2010
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Previous

Return to 2.x Extensions

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron