Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.



1682 posts

Uber Geek

Trusted

Topic # 76046 28-Jan-2011 00:49 Send private message

Hi I am trying to post some code examples on my blog and am struggling with the fact that the geekzone site strips bits out to avoid cross site scripting hacks.

So what is the best way to post coding examples on geekzone?

The only luck I have had is to replace < with &lt;

I would really like a solution that could also use syntax highlighting if possible.

I have been trying out some different things. One is http://tohtml.com/php/ which is pretty good as it does syntax highlighting, unfortunately geekzone stips the colour codes but all the syntax is correct.
I can't use Live Writer as it passes the non html version of the code. Also editing of the post isn't possible as the special html codes are converted into standard html codes and so get stripped on editing.

Still it works.

What I would like to see is the html code use something like php htmlentities so all the special character would be converted into the likes of &lt;
Just a thought.

Create new topic


1682 posts

Uber Geek

Trusted

  Reply # 435519 4-Feb-2011 21:34 Send private message

Something like this would be good to have, can the Geekzone blogs work with this?
http://blog.eviac.com/2010/11/publish-source-code-in-blogger-using.html

BDFL
44266 posts

Uber Geek

Administrator
Trusted
Geekzone
Subscriber

  Reply # 435521 4-Feb-2011 21:41 Send private message

We can try adding that to the Blog configuration and making it automatic.







1682 posts

Uber Geek

Trusted

  Reply # 435540 4-Feb-2011 22:51 Send private message

Thanks would be awesome thanks.

Create new topic





Twitter »
Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when new jobs are posted to our jobs board:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:




News »

Trending now »
Hot discussions in our forums right now:

Sky outbid for EPL rights (Premier League Pass discussion)
Created by JonnyCam, last reply by expression on 21-Jun-2013 00:16 (297 replies)
Pages... 18 19 20


Orcon Genius Go discussion
Created by freitasm, last reply by ptinson on 20-Jun-2013 22:10 (103 replies)
Pages... 5 6 7


Polar Blast
Created by BlueShift, last reply by Dratsab on 20-Jun-2013 23:21 (41 replies)
Pages... 2 3


I am been sued - HELP!
Created by BaaaaD, last reply by mattgreen on 20-Jun-2013 21:31 (79 replies)
Pages... 4 5 6


Slingshot Global Mode announced
Created by freitasm, last reply by richms on 20-Jun-2013 22:10 (63 replies)
Pages... 3 4 5


Condenser Dryer: anyone has one?
Created by joker97, last reply by graemew on 18-Jun-2013 21:08 (31 replies)
Pages... 2 3


Sky News UK now streaming on Apple TV
Created by steve98, last reply by jarledb on 20-Jun-2013 12:00 (19 replies)
Pages... 2


Calling all mazda 3/Axela owners in NZ
Created by coolcat21, last reply by Kingy on 19-Jun-2013 09:51 (37 replies)
Pages... 2 3



Geekzone Jobs »
Most recent NZ jobs in technology:

Mobile Developer - iOS
Posted 20-Jun-2013 16:38

Systems Administrator
Posted 20-Jun-2013 16:38

Senior SharePoint Developer
Posted 20-Jun-2013 16:38

Mobile Developer - Android
Posted 20-Jun-2013 16:38

B2B Service Executive
Posted 20-Jun-2013 15:38

Systems Administrator
Posted 20-Jun-2013 15:38

Solutions Architect
Posted 20-Jun-2013 15:38


Geekzone Live »
Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.