EvilZone

Community => News and Announcements => : Stackprotector April 20, 2012, 11:31:05 AM

: Code hightlighting
: Stackprotector April 20, 2012, 11:31:05 AM
Hello people :) ,

I just installed a code highlight mod for the forum now we can all benefit of cool code :)

How to use:


Simple C++ example

:
[code=cpp] MY AWESU"M CODE [/code ]

: (cpp)
#include <iostream>
int main()
{
      std::cout << "Hello, Evilzone!\n";
}
Code example for PHP highlight line 4

:
[code=php ,4] CODEE[/code ]
: (php, 4)
    public function __construct() {
        if(!isset($_POST['action']) || is_array($_POST['action']) || trim($_POST['action']) == "")
        {
             die(json_encode(array('status' => '404')));
        }
        else
        {
             $this->action = strtolower(trim(htmlentities($_POST['action'])));
        }
    }

There are over 200 programming/scripting/code highlight templates included ;)

I may do a little color change but for now, feel free to edit your existing posts to higher the evilzone experience.


Have a good weekend :D
: Re: Code hightlighting
: lordarnoud April 20, 2012, 12:48:53 PM
:O that's awesome! great job :) +1
: Re: Code hightlighting
: Deque April 20, 2012, 02:05:46 PM
Thank you, Factionwars.
: Re: Code hightlighting
: Kulverstukas April 20, 2012, 04:15:57 PM
Current members are asked to modify their posts that include code with new code tags... it would be beneficial for all of us and very kind from your side :)
: Re: Code hightlighting
: ande April 20, 2012, 05:01:36 PM
<3
: Re: Code hightlighting
: iTpHo3NiX April 20, 2012, 05:59:44 PM
Nice one, I do remember having this at EZ at one point, defiantly good when trying to get help and posting sources ;) Great edition to EZ
: Re: Code hightlighting
: Stackprotector April 20, 2012, 07:36:06 PM
Nice one, I do remember having this at EZ at one point, defiantly good when trying to get help and posting sources ;) Great edition to EZ
Yes it is :),  tough i am not 100% good with the whiteness at method declaring.
: Re: Code hightlighting
: r33per April 21, 2012, 08:57:11 PM
just like to point out that "."'s are very difficult to see which could cause some confusion.
Other than that looks much cleaner :)


: Re: Code hightlighting
: techb April 21, 2012, 09:07:12 PM
Great feature. The grey lettering is a bit hard to see as well, but great job none the less.
: Re: Code hightlighting
: @Veritas_Triumphus May 07, 2012, 12:08:28 PM
I really like those, but why there is no Visual Basic?
: Re: Code hightlighting
: Stackprotector May 07, 2012, 12:47:53 PM
: (vb)
lolcode=vb]
: Re: Code hightlighting
: @Veritas_Triumphus May 07, 2012, 12:54:16 PM
Oh, didnt noticed. Thanks :)
: Re: Code hightlighting
: Kulverstukas May 07, 2012, 01:05:17 PM
Someone should look into changing the colors a bit :P can't read the code when I can't see it.
: Re: Code hightlighting
: s3my0n May 16, 2012, 01:22:55 PM
Someone should look into changing the colors a bit :P can't read the code when I can't see it.

Same here, bump for admin's eyes.
: Re: Code hightlighting
: Kulverstukas May 27, 2012, 11:42:51 PM
Same here, bump for admin's eyes.
Issue's been resolved. Also scrollbars were added so that codes with 100 lines doesn't take up all of the screen.
: Re: Code hightlighting
: L0rd_M@dness May 28, 2012, 07:28:01 AM
Great job, but C'mon! I wish this was Black & Green instead of White & Black would you do that for me please, FactionWarz? ;D