VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    Would it be possible to include color coded text or syntex highlighting to our code/code block tags under the programmers sections ?

    This is a missing though very useful feature to have, especially when trying to hard-code the color for functions and variables, etc. in these discussions. Please consider this feature, thank you.

    some examples:


    * http://code.google.com/p/syntaxhighlighter/


    Another example, though different, for PHP
    * http://www.weberdev.com/get_example-4831.html

    -vhelp 5133
    Quote Quote  
  2. Member thecoalman's Avatar
    Join Date
    Feb 2004
    Location
    Pennsylvania
    Search PM
    This is standard feature in phpBB3 a lot of people are not aware of, just add =php in the code box tag.


    Code:
    [code=php]//Some code
    [/code]

    Works well for most code including HTML.

    Shouldn't be that hard to implement anywhere as it's a built in PHP feature as I understand it.



    Quote Quote  
  3. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    nope, suggestion failed.

    https://forum.videohelp.com/topic369074.html#1975689

    -vhelp 5140
    Quote Quote  
  4. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Originally Posted by vhelp
    nope, suggestion failed.

    https://forum.videohelp.com/topic369074.html#1975689

    -vhelp 5140
    Maybe because this forum still runs phpbb 2.
    Quote Quote  
  5. Member thecoalman's Avatar
    Join Date
    Feb 2004
    Location
    Pennsylvania
    Search PM
    Sorry vhelp I didn't mean to suggest you could use it here, what I meant was it's built in php function. To implement balbrick would have to hack the code that parses the bbcode so it parses anything in the code tags with it.


    One problem I have encountered myself with it is that it creates and enormous amount of text to insert into the database between all the tags and having to escape them all.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!