Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - Highlight code syntax
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Highlight code syntax

 Post Reply Post Reply
Author
milu View Drop Down
Newbie
Newbie


Joined: 09 October 2014
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote milu Quote  Post ReplyReply Direct Link To This Post Topic: Highlight code syntax
    Posted: 09 October 2014 at 2:07pm
Is it possible to get syntax highlightning in forum posts? We are developers and would like to copy paste code in to forum posts and keep the formatting and colors, syntax and so on.
Something like this: http://forums.webwiz.net/incorrect-syntax-near-10_topic27610. - http://forums.webwiz.net/incorrect-syntax-near-10_topic27610.html

Thanks!
/Mike
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Poole
Status: Offline
Points: 9647
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 09 October 2014 at 3:55pm
The post that you link to I would imagine that the persons has either copied and pasted the code already with the colour formatting or they have used the post editor to select the colours for the text.

Syntax highlighting would be a big project to undertake. Web Wiz Forums already used [ code ] [/ code ] BBCodes for the posting of code with in posts.

I would say that the best approach would be to develop this further to parse the text within the BBCode [ code ] [/ code ] area once submitted to add HTML colouring to certain words.

You would also need to build a list of words for the languages that you wish to use that syntax highlighting would be applied to.

It would be a large project to develop, probably taking a few weeks of development and testing to get it working correctly.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.


Become a Fan on Facebook Follow us on Twitter Connect with us on LinkedIn Community Forums Web Wiz Blogs Web Wiz News
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2021 Web Wiz Ltd. All rights reserved.