Welcome to Geeklog, Anonymous Wednesday, May 01 2024 @ 07:21 pm EDT

Geeklog Forums

jquery syntax highlightiing


Status: offline

dwl

Forum User
Junior
Registered: 01/05/11
Posts: 25
curious
There are some articles/stories I want to write on my geeklog-powered site. These stories are How-to's requiring syntax highlighting of various kinds (e.g.: sql, php, shell). I have found a plug-in to integrate these but am unsure how to do so with geeklog. I am using ver. 1.8 and have seen posts here about integrating css and js files on static pages.

For anyone offering a solution, kindly give specific and exact steps.
 Quote

Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/04
Posts: 555
Location:Champaign, Illinois
Exact steps: use the jQuery plugin.

-s
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com
 Quote

Status: offline

dwl

Forum User
Junior
Registered: 01/05/11
Posts: 25
Solved: Disregard except for the thanks

Thanks for the help, suprsidr. However, now I have a challenge. If I click on the plugins feature of my site I receive the following:

Fatal error: Cannot redeclare plugin_autoinstall_jquery() (previously declared in /home/..../plugins/jquery/autoinstall.php:45) in /home/...../geeklog/plugins/jquery.previous/autoinstall.php on line 85

I deployed the plug-in on the development linux environment I have before sending everything up to the main server.

Quote by: suprsidr

Exact steps: use the jQuery plugin.

-s

 Quote

Status: offline

dwl

Forum User
Junior
Registered: 01/05/11
Posts: 25
I've followed the documentation and steps for implementing the jQuery plugin but can not implement the brush for css.

According to the documentation I should be able to activate it with
Text Formatted Code
<code class="css">


On the alex gorbatchev site there is mention of requisite file names for different syntax highlighters but I can not find their location using sh*.js as a filefind parameter. I can successfully implement classes for php and js syntax.
 Quote

All times are EDT. The time is now 07:21 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content