init.php 425 B

1234567891011121314151617181920212223242526
  1. <?php
  2. class HighlightJS extends Plugin {
  3. private $host;
  4. function about() {
  5. return array(1.0,
  6. "Hightlights code blocks in articles using HighlightJS",
  7. "fox");
  8. }
  9. function init($host) {
  10. $this->host = $host;
  11. }
  12. function get_css() {
  13. return file_get_contents(__DIR__ . "/hljs-theme.css");
  14. }
  15. function get_js() {
  16. return file_get_contents(__DIR__ . "/init.js");
  17. }
  18. function api_version() {
  19. return 2;
  20. }
  21. }