WordPress.org

Ready to get started?Download WordPress

Forums

Prism Syntax Highlighter (detached)
[resolved] PHP language (7 posts)

  1. Jacob Tomlinson
    Member
    Posted 1 year ago #

    Hello

    I was wondering if you are planning on adding any PHP support. There is a fork of the original project on github which has added PHP (albeit a little buggy) https://github.com/Aaron3/prism/tree/a1825655c710bcad49a64f18661fb15805cf7dd7.

    I noticed in the plugin folder that there is a vendor directory. Would it be as simple as changing the files in there for the ones from the PHP fork or have you modified their content?

    I'm happy and interested to undertake the work myself to try out the PHP fork in your plugin but was hoping you may be able to give me a little information to point me in the right direction.

    Regards
    Jacob

    http://wordpress.org/extend/plugins/prism-detached/

  2. apfelbox
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Jacob,

    yes, I am planning to add PHP support too.
    I will release a new version of the plugin this weekend, and the PHP support will be included.

    Regards
    Jannik

  3. apfelbox
    Member
    Plugin Author

    Posted 1 year ago #

    I just saw: the PHP extension has some modifications for the themes, too.

    I want to implement it properly, so that additional languages can be loaded quite easy. So I will have to postpone the next update until the end of next week.

    It will include a proper extension loader and make loading the correct files quite easy.

  4. Jacob Tomlinson
    Member
    Posted 1 year ago #

    Not a problem, thanks for keepign me posted.

  5. apfelbox
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, I just released v1.3
    I refactored the most part of the plugin, but now I introduced a new system, which makes it quite easy to include extensions.

    Please test it out and keep me posted, whether everything is working as expected.

    I also created and included a plugin containing the PHP language, but it seems kind of broken: it double encodes every entity, it transforms every $this->test() into $this->().

    It seems that the actual PHP plugin is the cause of it, since it works fine, if it is deactivated.

  6. apfelbox
    Member
    Plugin Author

    Posted 1 year ago #

    (PS: don't miss to check the new (cached) assets loader out. It can improve the overall loading performance of your site, if you are using a lot of prism extensions in the plugin)

  7. Jacob Tomlinson
    Member
    Posted 1 year ago #

    Excellent. I've tested it out and it appears to be working excellently thank you.

    Have a look at an example here http://www.jacobtomlinson.co.uk/2012/09/11/ajax-database-tooltip/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic