PHP code example of bogdancondorachi / kirby-code-highlighter

1. Go to this page and download the library: Download bogdancondorachi/kirby-code-highlighter library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bogdancondorachi / kirby-code-highlighter example snippets


echo "Hello, world!";

'bogdancondorachi.code-highlighter' => [
  'theme' => 'github-dark-default',
],

'bogdancondorachi.code-highlighter' => [
  'language' => 'text',
],

'bogdancondorachi.code-highlighter' => [
  'themes' => [
    'light' => 'github-light',
    'dark' => 'github-dark'
  ]
],

'bogdancondorachi.code-highlighter' => [
  'gutter' => true,
],

'bogdancondorachi.code-highlighter' => [
  'block.languages' => [
    'css' => 'CSS',
    'php' => 'PHP',
    'yml' => 'Yaml',
  ],
  'block.themes' => [
    'github-dark' => 'GitHub Dark',
    'github-light' => 'GitHub Light',
    'vitesse-dark' => 'Vitesse Dark',
  ],
],

(code: ZWNobyAiSGVsbG8sIHdvcmxkISI7 lang: php theme: github-light)