You are here

function syntaxhighlighter_libraries_info in Syntax Highlighter 8

Same name and namespace in other branches
  1. 7.2 syntaxhighlighter.module \syntaxhighlighter_libraries_info()

Implements hook_libraries_info().

NOTE: this hook is deprecated and will be dropped in the stable Drupal 8 release of the libraries module.

File

./syntaxhighlighter.module, line 396
Syntax highlight code using the SyntaxHighlighter Javascript library.

Code

function syntaxhighlighter_libraries_info() {
  $libraries['syntaxhighlighter'] = [
    // Only used in administrative UI of Libraries API.
    'name' => 'SyntaxHighlighter',
    'vendor url' => 'http://alexgorbatchev.com/SyntaxHighlighter/',
    'download url' => 'https://github.com/syntaxhighlighter/SyntaxHighlighter-Site/tree/master/content/SyntaxHighlighter/download',
    'path' => 'scripts',
    'version arguments' => [
      'file' => 'scripts/shCore.js',
      'pattern' => '@([0-9]+.[0-9]+.[0-9]+)@',
      'lines' => 15,
      'cols' => 30,
    ],
  ];
  return $libraries;
}