Skip to:
Content
Pages
Categories
Search
Top
Bottom

Highlighting source code

  • @mayursomani

    Member

    Is there any plugin that can help me highlight source code on bbpress?

    Any other ideas are also welcome.

    Thanks for reading.

Viewing 5 replies - 1 through 5 (of 5 total)
  • @_ck_

    Participant

    This has been done a few different ways for bbpress over the years, this plugin is the easiest to find but there are other ways:

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

    @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

    @gerikg

    Member

    @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

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar