WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: SyntaxHighlighter Evolved] Syntax highlight for BuddyPress forum posts (14 posts)

  1. Erlend Sogge Heggen
    Member
    Posted 3 years ago #

    I just realized this plugin doesn't extend to BuddyPress forum posts. Is there any chance there's room in the scope for this added functionality? Maybe it'd be more suitable to make a BuddyPress plugin that couples with your plugin?

    http://wordpress.org/extend/plugins/syntaxhighlighter/

  2. I'd be happy to add BuddyPress support, but I don't know the filter names (for pre-save, the content filter, etc.).

  3. rich! @ etiviti
    Member
    Posted 3 years ago #

  4. Thanks!

  5. Erlend Sogge Heggen
    Member
    Posted 3 years ago #

    Erm, so the fact that there seems to be a fix and all is awesome but, allow me to introduce myself: Hi, I'm Erlend, and I'm an average WordPress user =P

    Alex, could you be so kind as to update your plugin with this latest addition? Alternatively you could maybe publish a BuddyPress-specific add-on. Promise there's a free beer in it for you!

  6. As I clearly stated above, I plan on adding BuddyPress support to my plugin. However I write this plugin in my spare time, something which I have very little of.

    If you aren't happy with it, then feel free to use something else or implement it yourself.

  7. Erlend Sogge Heggen
    Member
    Posted 3 years ago #

    Sorry, I must have come off in a way I didn't intend for. A donation should tick in shortly :)

  8. Erlend Sogge Heggen
    Member
    Posted 3 years ago #

    By the way, maybe the BP plugin (or added BP code, whichever way you'll approach this) should include a way to opt for <> tags instead of [] tags? It just makes more sense particularly when posting on a forum, since brackets aren't the convention there in the case of bbPress.

  9. My plugin uses the shortcode API which only supports [].

  10. Erlend Sogge Heggen
    Member
    Posted 3 years ago #

    Ah I see. Aw well, code tags with pointy brackets will just have to remain as an acceptable fallback for the uninformed on our forum then ;D

  11. Erlend Sogge Heggen
    Member
    Posted 3 years ago #

    Any news?

  12. Nope.

    I plan on adding it in v3 though, I just haven't had time to work on this plugin.

  13. normen
    Member
    Posted 3 years ago #

    For all who dont want to wait, extending this plugin to buddypress forum posts is as easy as adding the following line to syntaxhighlighter.php:

    add_filter( 'bp_get_the_topic_post_content', array(&$this, 'parse_shortcodes'), 7 );

    I suggest adding it after // Register generic hooks.

    Cheers,
    Normen

  14. Thanks. I've added that code to my todo list for when I find time to work on v3.

Topic Closed

This topic has been closed to new replies.

About this Topic