Results 1 to 7 of 7
  1. #1

    Default Generic Syntax Highlighter in SiteGround Forum

    Recently we have tested and implemented a Generic Syntax Highlighter solution (GeSHi vBulletin product) in the SiteGround forum.

    The new functionality allows the forum members to include source code from different programing languages in their posts. The code visualization will be highlighted according to the GeSHi product rules.

    The members can include programming source code using the following bbcode syntax:

    [highlight=language]
    some code
    [/highlight]

    The SiteGround forum members can check the following example:

    [highlight=php]
    <?php
    phpinfo();
    ?>
    [/highlight]

  2. #2

    Default

    This is great!

    However, whenever I try to post code snippits to the SG forum, it censors the coding language. I suspect your post is fine because you are able to bypass them.

    Can you please review your filters?

  3. #3
    Join Date
    Apr 2007
    Posts
    366

    Default

    Please just let us know which is the language you'd like to use in a snippet?

  4. #4

    Default

    Quote Originally Posted by Anatoli View Post
    Please just let us know which is the language you'd like to use in a snippet?
    PHP is usually what I post. See here for example: http://forum.siteground.com/showthre...5510#post35510

  5. #5

    Default

    We have edited the problematic post adding the following wrap around your code:

    [highlight=language]
    some code
    [/highlight]

    Instead of "language" we have entered "php" since this is the used programming language.

    [highlight=php]
    <?php
    print_r($_REQUEST);
    ?>
    [/highlight]

    Try again. You should not experience issues with the code highlighting.

  6. #6

    Default

    [highlight=php]
    <?php
    print_r($_REQUEST);
    ?>
    [/highlight]
    Thanks!

  7. #7

    Default

    Having issues with the filtering/censors again guys....
    http://forum.siteground.com/showthre...9703#post39703

Similar Threads

  1. SQL Syntax Error - ?
    By Fortuno in forum Hosting Related Questions
    Replies: 3
    Last Post: 05-18-2011, 05:14 AM
  2. Dreamweaver is claiming I have a syntax error on line 30...
    By Demon Templates in forum Hosting Related Questions
    Replies: 0
    Last Post: 02-20-2010, 05:33 PM
  3. Cronjob - Syntax to backup MySQL on a regular basis
    By Wolfseye in forum Hosting Related Questions
    Replies: 6
    Last Post: 07-30-2008, 12:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •