A basic integration of the prism library. #293

Merged
gnuget merged 1 commit from prism into master 2019-01-15 18:16:34 +00:00
gnuget commented 2019-01-15 01:11:21 +00:00 (Migrated from gitlab.com)

I tried to use our current library but it seems that the build is broken:

https://github.com/syntaxhighlighter/syntaxhighlighter/issues/428

So, instead, I switched to PRISM which seems to be more popular nowadays.

This module basically just adds the prism.js and the prims.css on our page, so we can just use it directly using this syntax:

<pre>
  <code class="lang-php">
  </code>
</pre>

And it looks like this:Screen_Shot_2019-01-14_at_7.01.41_PM

I tried to use our current library but it seems that the build is broken: https://github.com/syntaxhighlighter/syntaxhighlighter/issues/428 So, instead, I switched to PRISM which seems to be more popular nowadays. This module basically just adds the prism.js and the prims.css on our page, so we can just use it directly using this syntax: ``` <pre> <code class="lang-php"> </code> </pre> ``` And it looks like this:![Screen_Shot_2019-01-14_at_7.01.41_PM](/uploads/e0794673bc606c2a8a34c0ea863b8789/Screen_Shot_2019-01-14_at_7.01.41_PM.png)
mlncn (Migrated from gitlab.com) approved these changes 2019-01-15 01:11:21 +00:00
gnuget commented 2019-01-15 01:18:11 +00:00 (Migrated from gitlab.com)

mentioned in issue #30

mentioned in issue #30
mlncn commented 2019-01-15 05:03:52 +00:00 (Migrated from gitlab.com)

@gnuget Great! But please move to theme + https://gitlab.com/agaric/patternlibrary

@gnuget Great! But please move to theme + https://gitlab.com/agaric/patternlibrary
gnuget commented 2019-01-15 16:01:51 +00:00 (Migrated from gitlab.com)

Ok.

Ok.
gnuget commented 2019-01-15 16:20:13 +00:00 (Migrated from gitlab.com)

added 7 commits

  • dd839569...664775e4 - 4 commits from branch master
  • 76b740ad - A basic integration of the prism library.
  • d4b055bc - Remove the agaric_prism module.
  • dd3404a4 - Add the prism library in the theme

Compare with previous version

added 7 commits <ul><li>dd839569...664775e4 - 4 commits from branch <code>master</code></li><li>76b740ad - A basic integration of the prism library.</li><li>d4b055bc - Remove the agaric_prism module.</li><li>dd3404a4 - Add the prism library in the theme</li></ul> [Compare with previous version](https://gitlab.com/agaric/sites/agaric-com/merge_requests/50/diffs?diff_id=31528874&start_sha=dd83956917578c1374922d6a9a2c87d8ae5fc70b)
gnuget commented 2019-01-15 16:29:40 +00:00 (Migrated from gitlab.com)

Done.

Done.
mlncn commented 2019-01-15 18:16:32 +00:00 (Migrated from gitlab.com)

approved this merge request

approved this merge request
mlncn commented 2019-01-15 18:16:34 +00:00 (Migrated from gitlab.com)

merged

merged
mlncn commented 2019-01-15 18:16:36 +00:00 (Migrated from gitlab.com)

mentioned in commit 80da91b259

mentioned in commit 80da91b259b8eb393ba54c395fa660c34581b8a6
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: agaric/agaric-coop#293
No description provided.