Welcome Guest. Please Login or Register  

You are here: Index > Advanced Electron Forums > Mods > Topic : Google Prettify in bbcode?

HostDash Banner


Group Message
Hello Guest,

Welcome to the AEF Board. AEF is getting better and better and is also becoming more popular.
Take a few seconds to Register, its free, and it inspires us to work harder and improve on whatever we can improve on.
Give us some feedback, and tell your buddies about AEF!

The AEF Team

Threaded Mode | Print  

 Google Prettify in bbcode? (0 Replies, Read 119125 times)
Group: Member
Post Group: Newbie
Posts: 3

I have tried for a while to implement Google Prettify...

Demo links:

http://reizero.biz/code.php?c=test-get.php  (php/html)
http://reizero.biz/code.php?c=FRQ.ino  (c++ like syntax)
http://reizero.biz/code.php?c=robotic_cans.split  (dual-file source code)

* These links are not connected to AEF.

Below is a sample script I wrote, but I don't know how to implement it as a mod to AEF.

<LINK HREF="resources/prettify.css" TYPE="text/css" REL="stylesheet" />
<SCRIPT SRC="resources/prettify.js"></SCRIPT>
</HEAD><BODY onload="prettyPrint()">

$code = "here the code would be highlighted with Google Prettify";

echo "<pre class=\"prettyprint linenums:1\"><BR>".htmlspecialchars($code)."</pre> ";
<NOSCRIPT>Error: This page requires javascript, which your browser does not support.<BR><BR>It is possible that javascript is disabled in your browser.<BR><BR>Enable it and/or update your browser and this page should work just fine.</NOSCRIPT></BODY></HTML>

How can I implement this, preferably with lets say the tag [src] ?

Thanks in advance.

Edited by Patrik356b : January 26, 2014, 2:31 am
IP: --   

« Previous    Next »

Threaded Mode | Print  

Jump To :

Members who read this topic
SAFAD, cristrixy, Patrik356b

Users viewing this topic
1 guests, 0 users.

Sponsor: RatePanda - Customer Review Management Platform

All times are GMT. The time now is May 21, 2022, 11:09 am.

  Powered By AEF 1.1.0 Preview © 2007-2011 AEF Group. All rights reservedQueries: 13  |  Page Created In:0.041