Jump to content

Welcome to DevFuse Forums

Sign In  Log in with Facebook

Create Account
Welcome to DevFuse Forums, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of DevFuse Forums by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.
Guest Message by DevFuse

(View All Products)Featured Products

  • Donations

    Help fund your forum with donations, setup goals and track member donations. Offer rewards for members donating.
  • Timeslips

    Have your members submit their race times and share with others.
  • Videos

    Allows your members to submit their own videos for community viewing. Support is included for all the major video sites.
  • Forms

    Build your own forms for your members without coding experience. Support included for pm, email and topics.
  • Collections

    Build a community database of items for your members. Full features custom fields included.


[IPS] SyntaxHighlighter

This topic has been archived. This means that you cannot reply to this topic.
No replies to this topic

#1 News Bot

News Bot

    Dedicated Member

  • Members
  • PipPipPipPipPip
  • 1,909 posts
  • IP.Board Version:N/A

Posted 06 January 2013 - 07:46 PM

SyntaxHighlighter Drop-in Replacement allows for you, the forum admin, to take control of what code highlighters are used on your forum. This replaces the current highlighter (<a href='http://code.google.c...-code-prettify/' class='bbc_url' title='External link' rel='nofollow external'>prettify</a>) with a popular alternative <a href='http://alexgorbatche...taxHighlighter/' class='bbc_url' title='External link' rel='nofollow external'>SyntaxHighlighter</a>. This is 100% compatible with the original code box and does not edit or remove any of the default code. <br /><br />By switching to SyntaxHighlighter you gain a few new settings:<ul class='bbcol decimal'><li>Ability to parse outdated bbcodes (html, php, sql, xml)<sup class='bbc'><span style='font-size: 8px;'>1</span></sup></li><li>Enable or disable the ability to click on URLs within code boxes</li><li>Change the tab size</li><li>Auto-collapse code boxes on page load, similar to a spoiler feature. This is great for forums with a lot of code. </li><li>Ability to disable line numbers if the author wishes to do so.</li><li>Change the CSS within the admin interface (including changing to a <a href='http://alexgorbatche.../manual/themes/' class='bbc_url' title='External link' rel='nofollow external'>new theme</a>)</li></ul>There are numerous items in the pipeline as well:<ul class='bbcol decimal'><li>Add in new languages available to the user within the Code box dialog in the rich text editor</li><li>Ability for users to highlight select lines, great for help with debugging!</li><li>A new toolbar which allows users to hide line numbers for any code box, open a "raw" version (plain text) of the code, print, etc.</li></ul>This hook is <a href='https://github.com/M...ntaxhighlighter' class='bbc_url' title='External link' rel='nofollow external'>open source</a> and any contributor can include it with his or her themes and applications, or contribute via bug fixes / addition of features. Even though it is open source, I ask for contributors to include credit if used. <img src='http://community.inv...fault/smile.png' class='bbc_emoticon' alt=':smile:' /><br /> <br /><span style='font-size: 10px;'><sup class='bbc'>1</sup></span> - It should be noted that there is an outstanding bug with IPB on this and currently does not render old bbcodes. Once IPB's bug is fixed, this feature can be enabled.

View Resource