Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Not working with kirby-2.5.12 #4

Open
abhijitnandy opened this issue Aug 30, 2018 · 1 comment
Open

Not working with kirby-2.5.12 #4

abhijitnandy opened this issue Aug 30, 2018 · 1 comment
Assignees
Labels

Comments

@abhijitnandy
Copy link

abhijitnandy commented Aug 30, 2018

I've followed the steps as you've mentioned -

  1. Added kirby-pep and kirby-highlight plugins into /site/plugins/ directory

  2. Added zenburn.css by adding the following
    <?php echo css('assets/plugins/kirby-highlight/css/zenburn.css') ?>
    into

site/snippets/header.php

  1. In site/config/config.php, I added the following:
c::set(‘plugin.kirby-highlight’, true);
c::set(‘plugin.kirby-highlight.languages’, [‘html’, ‘scss’, ‘php’, ‘css’, ‘javascript’]);
c::set(‘plugin.kirby-pep’, true);
c::set(‘plugin.kirby-pep.code_class’, ‘language-%s hljs’);

into config.php

  1. Finally, in a blog article, I put this text:

```php
<?php phpinfo();
```

In my blog page, I get the output like this

&lt;div class="text"&gt;
&lt;p&gt;
&amp;lt;span class="php"&amp;gt;&amp;lt;span class="hljs-meta"&amp;gt;&amp;lt;?&amp;lt;/span&amp;gt;= $page-&amp;gt;children()-&amp;gt;visible() &amp;lt;span class="hljs-meta"&amp;gt;?&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt; &lt;a href="http://kirby.localhost:1000/blog/kirby-highlight" class="article-more"&gt;read more&lt;/a&gt;
&lt;/p&gt;
&lt;/div&gt;

I raised the issue in Kirby forum but those steps didn't help me either -
Kirby Forum Link

@S1SYPHOS S1SYPHOS self-assigned this Mar 17, 2019
@S1SYPHOS S1SYPHOS added the bug label Mar 17, 2019
@S1SYPHOS
Copy link
Owner

S1SYPHOS commented Mar 25, 2019

Does it work now, with help in the forum, or does your problem persist?

I released v0.6.0 just now, after upgrading you may drop kirby-pep plugin unless you're using it for something other than adding class hljs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants