Welcome Guest. Please Login or Register  


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


News:

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!

Thanks,
The AEF Team



Threaded Mode | Print  

 Google Prettify in bbcode? (0 Replies, Read 38119 times)
Patrik356b
Group: Member
Post Group: Newbie
Posts: 3
Status:
Hello.

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

Demo links:
Quote

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.

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

<?php
$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
2 guests, 0 users.


All times are GMT. The time now is December 13, 2017, 3:27 pm.

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