MayurSomani (@mayursomani)

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • @mayursomani

    Member

    Hi, fixed the issue, edited the bbpress plugin to use this,

    if (!class_exists(‘GeSHi’)) {

    include_once(“geshi/geshi.php”); }

    Thus the class is not reused on wp.

    Thanks zaerl for the hint :)

    @mayursomani

    Member

    ok managed to use js to highlight the code. Thanks for help everyone.

    @mayursomani

    Member

    ok I managed to activate the plugin,

    https://bbpress.org/plugins/topic/bbpresssyntax-hiliter/

    by changing my_plugins to bb_plugins and the folder name to bbpress_syntax_hilite.

    I checked and js and styles are being loaded in header.

    Still, the code is not highlighted :(

    @mayursomani

    Member

    Hi _ck_

    Thanks for quick reply. Can you please tell me about the other ways?

    This is because the plugin above is not working.

    What I need is that someone wraps the code in code tags or pre tags (but not both) and it gets highlighted. I need to highlight java code.

    I can edit any existing plugin to suit my requirements, I just need a hint to start.

    Looking forward to your reply.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)