Socket
Socket
Sign inDemoInstall

highlight.js

Package Overview
Dependencies
Maintainers
2
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

highlight.js - npm Package Compare versions

Comparing version 8.6.0 to 8.7.0

lib/languages/autoit.js

15

lib/highlight.js

@@ -350,6 +350,11 @@ /*

function processSubLanguage() {
if (top.subLanguage && !languages[top.subLanguage]) {
var explicit = typeof top.subLanguage == 'string';
if (explicit && !languages[top.subLanguage]) {
return escape(mode_buffer);
}
var result = top.subLanguage ? highlight(top.subLanguage, mode_buffer, true, continuations[top.subLanguage]) : highlightAuto(mode_buffer);
var result = explicit ?
highlight(top.subLanguage, mode_buffer, true, continuations[top.subLanguage]) :
highlightAuto(mode_buffer, top.subLanguage.length ? top.subLanguage : undefined);
// Counting embedded language score towards the host language may be disabled

@@ -362,3 +367,3 @@ // with zeroing the containing mode relevance. Usecase in point is Markdown that

}
if (top.subLanguageMode == 'continuous') {
if (explicit) {
continuations[top.subLanguage] = result.top;

@@ -672,3 +677,3 @@ }

hljs.NUMBER_RE = '\\b\\d+(\\.\\d+)?';
hljs.C_NUMBER_RE = '\\b(0[xX][a-fA-F0-9]+|(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)'; // 0x..., 0..., decimal, float
hljs.C_NUMBER_RE = '(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)'; // 0x..., 0..., decimal, float
hljs.BINARY_NUMBER_RE = '\\b(0b[01]+)'; // 0b...

@@ -708,3 +713,3 @@ hljs.RE_STARTERS_RE = '!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~';

className: 'doctag',
beginKeywords: "TODO FIXME NOTE BUG XXX",
begin: "(?:TODO|FIXME|NOTE|BUG|XXX):",
relevance: 0

@@ -711,0 +716,0 @@ });

@@ -12,2 +12,3 @@ var hljs = require('./highlight');

hljs.registerLanguage('autohotkey', require('./languages/autohotkey'));
hljs.registerLanguage('autoit', require('./languages/autoit'));
hljs.registerLanguage('avrasm', require('./languages/avrasm'));

@@ -38,2 +39,3 @@ hljs.registerLanguage('axapta', require('./languages/axapta'));

hljs.registerLanguage('elixir', require('./languages/elixir'));
hljs.registerLanguage('elm', require('./languages/elm'));
hljs.registerLanguage('ruby', require('./languages/ruby'));

@@ -76,2 +78,4 @@ hljs.registerLanguage('erb', require('./languages/erb'));

hljs.registerLanguage('mizar', require('./languages/mizar'));
hljs.registerLanguage('perl', require('./languages/perl'));
hljs.registerLanguage('mojolicious', require('./languages/mojolicious'));
hljs.registerLanguage('monkey', require('./languages/monkey'));

@@ -87,3 +91,2 @@ hljs.registerLanguage('nginx', require('./languages/nginx'));

hljs.registerLanguage('parser3', require('./languages/parser3'));
hljs.registerLanguage('perl', require('./languages/perl'));
hljs.registerLanguage('pf', require('./languages/pf'));

@@ -132,3 +135,5 @@ hljs.registerLanguage('php', require('./languages/php'));

hljs.registerLanguage('xl', require('./languages/xl'));
hljs.registerLanguage('xquery', require('./languages/xquery'));
hljs.registerLanguage('zephir', require('./languages/zephir'));
module.exports = hljs;

@@ -71,4 +71,5 @@ module.exports = function(hljs) {

}
]
],
illegal: /#/
};
};

@@ -94,4 +94,4 @@ module.exports = function(hljs) {

].concat(COMMENTS),
illegal: '//|->|=>'
illegal: '//|->|=>|\\[\\['
};
};

@@ -14,3 +14,3 @@ module.exports = function (hljs) {

keywords : KEYWORDS,
illegal : /<\//,
illegal : /<\/|#/,
contains : [

@@ -17,0 +17,0 @@ hljs.COMMENT(

@@ -66,3 +66,3 @@ module.exports = function(hljs) {

};
return {

@@ -69,0 +69,0 @@ case_insensitive: true,

@@ -9,3 +9,3 @@ module.exports = function(hljs) {

end: /$/,
subLanguage: 'clojure', subLanguageMode: 'continuous'
subLanguage: 'clojure'
}

@@ -12,0 +12,0 @@ }

@@ -14,5 +14,2 @@ module.exports = function(hljs) {

'yes no on off',
reserved:
'case default function var void with const let enum export import native ' +
'__hasProp __extends __slice __bind __indexOf',
built_in:

@@ -19,0 +16,0 @@ 'npm require console print module global window document'

module.exports = function(hljs) {
var CPP_PRIMATIVE_TYPES = {
className: 'keyword',
begin: '[a-z\\d_]*_t'
begin: '\\b[a-z\\d_]*_t\\b'
};
var STRINGS = {
className: 'string',
variants: [
hljs.inherit(hljs.QUOTE_STRING_MODE, { begin: '((u8?|U)|L)?"' }),
{
begin: '(u8?|U)?R"', end: '"',
contains: [hljs.BACKSLASH_ESCAPE]
},
{
begin: '\'\\\\?.', end: '\'',
illegal: '.'
}
]
};
var NUMBERS = {
className: 'number',
variants: [
{ begin: '\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)' },
{ begin: hljs.C_NUMBER_RE }
]
};
var FUNCTION_TITLE = hljs.IDENT_RE + '\\s*\\(';
var CPP_KEYWORDS = {
keyword: 'false int float while private char catch export virtual operator sizeof ' +
keyword: 'int float while private char catch export virtual operator sizeof ' +
'dynamic_cast|10 typedef const_cast|10 const struct for static_cast|10 union namespace ' +
'unsigned long volatile static protected bool template mutable if public friend ' +
'do goto auto void enum else break extern using true class asm case typeid ' +
'do goto auto void enum else break extern using class asm case typeid ' +
'short reinterpret_cast|10 default double register explicit signed typename try this ' +
'switch continue inline delete alignof constexpr decltype ' +
'noexcept nullptr static_assert thread_local restrict _Bool complex _Complex _Imaginary ' +
'noexcept static_assert thread_local restrict _Bool complex _Complex _Imaginary ' +
'atomic_bool atomic_char atomic_schar ' +
'atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong ' +
'atomic_ullong',
built_in: 'std string cin cout cerr clog stringstream istringstream ostringstream ' +
built_in: 'std string cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream ' +
'auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set ' +

@@ -23,6 +48,7 @@ 'unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos ' +

'fscanf isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper ' +
'isxdigit tolower toupper labs ldexp log10 log malloc memchr memcmp memcpy memset modf pow ' +
'isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow ' +
'printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp ' +
'strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan ' +
'vfprintf vprintf vsprintf'
'vfprintf vprintf vsprintf',
literal: 'true false nullptr NULL'
};

@@ -37,25 +63,9 @@ return {

hljs.C_BLOCK_COMMENT_MODE,
NUMBERS,
STRINGS,
{
className: 'string',
variants: [
hljs.inherit(hljs.QUOTE_STRING_MODE, { begin: '((u8?|U)|L)?"' }),
{
begin: '(u8?|U)?R"', end: '"',
contains: [hljs.BACKSLASH_ESCAPE]
},
{
begin: '\'\\\\?.', end: '\'',
illegal: '.'
}
]
},
{
className: 'number',
begin: '\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)'
},
hljs.C_NUMBER_MODE,
{
className: 'preprocessor',
begin: '#', end: '$',
keywords: 'if else elif endif define undef warning error line pragma',
keywords: 'if else elif endif define undef warning error line ' +
'pragma ifdef ifndef',
contains: [

@@ -66,7 +76,16 @@ {

{
begin: 'include\\s*[<"]', end: '[>"]',
keywords: 'include',
illegal: '\\n'
beginKeywords: 'include', end: '$',
contains: [
STRINGS,
{
className: 'string',
begin: '<', end: '>',
illegal: '\\n',
}
]
},
hljs.C_LINE_COMMENT_MODE
STRINGS,
NUMBERS,
hljs.C_LINE_COMMENT_MODE,
hljs.C_BLOCK_COMMENT_MODE,
]

@@ -91,3 +110,4 @@ },

className: 'function',
begin: '(' + hljs.IDENT_RE + '\\s+)+' + hljs.IDENT_RE + '\\s*\\(', returnBegin: true, end: /[{;=]/,
begin: '(' + hljs.IDENT_RE + '[\\*&\\s]+)+' + FUNCTION_TITLE,
returnBegin: true, end: /[{;=]/,
excludeEnd: true,

@@ -97,3 +117,3 @@ keywords: CPP_KEYWORDS,

{
begin: hljs.IDENT_RE + '\\s*\\(', returnBegin: true,
begin: FUNCTION_TITLE, returnBegin: true,
contains: [hljs.TITLE_MODE],

@@ -108,3 +128,6 @@ relevance: 0

contains: [
hljs.C_BLOCK_COMMENT_MODE
hljs.C_LINE_COMMENT_MODE,
hljs.C_BLOCK_COMMENT_MODE,
STRINGS,
NUMBERS
]

@@ -111,0 +134,0 @@ },

@@ -69,4 +69,3 @@ module.exports = function (hljs) {

{
subLanguage: 'markdown',
subLanguageMode: 'continuous'
subLanguage: 'markdown'
}

@@ -78,4 +77,3 @@ ),

{
subLanguage: 'markdown',
subLanguageMode: 'continuous'
subLanguage: 'markdown'
}

@@ -82,0 +80,0 @@ ),

@@ -23,3 +23,3 @@ module.exports = function(hljs) {

case_insensitive: true,
subLanguage: 'xml', subLanguageMode: 'continuous',
subLanguage: 'xml',
contains: [

@@ -26,0 +26,0 @@ hljs.COMMENT(/\{%\s*comment\s*%}/, /\{%\s*endcomment\s*%}/),

@@ -17,3 +17,3 @@ module.exports = function(hljs) {

end: /[^\\]\n/,
subLanguage: 'bash', subLanguageMode: 'continuous'
subLanguage: 'bash'
}

@@ -20,0 +20,0 @@ },

@@ -6,3 +6,3 @@ module.exports = function(hljs) {

case_insensitive: true,
subLanguage: 'xml', subLanguageMode: 'continuous',
subLanguage: 'xml',
contains: [

@@ -9,0 +9,0 @@ {

module.exports = function(hljs) {
return {
subLanguage: 'xml', subLanguageMode: 'continuous',
subLanguage: 'xml',
contains: [

@@ -5,0 +5,0 @@ hljs.COMMENT('<%#', '%>'),

@@ -84,4 +84,5 @@ module.exports = function(hljs) {

},
]
],
illegal: /#/
}
};

@@ -6,3 +6,3 @@ module.exports = function(hljs) {

case_insensitive: true,
subLanguage: 'xml', subLanguageMode: 'continuous',
subLanguage: 'xml',
contains: [

@@ -9,0 +9,0 @@ {

@@ -30,3 +30,3 @@ module.exports = function(hljs) {

begin: '\\n\\n',
starts: {subLanguage: '', endsWithParent: true}
starts: {subLanguage: [], endsWithParent: true}
}

@@ -33,0 +33,0 @@ ]

module.exports = function(hljs) {
var STRING = {
className: "string",
contains: [hljs.BACKSLASH_ESCAPE],
variants: [
{
begin: "'''", end: "'''",
relevance: 10
}, {
begin: '"""', end: '"""',
relevance: 10
}, {
begin: '"', end: '"'
}, {
begin: "'", end: "'"
}
]
};
return {
aliases: ['toml'],
case_insensitive: true,

@@ -7,9 +25,10 @@ illegal: /\S/,

hljs.COMMENT(';', '$'),
hljs.HASH_COMMENT_MODE,
{
className: 'title',
begin: '^\\[', end: '\\]'
begin: /^\s*\[+/, end: /\]+/
},
{
className: 'setting',
begin: '^[a-z0-9\\[\\]_-]+[ \\t]*=[ \\t]*', end: '$',
begin: /^[a-z0-9\[\]_-]+\s*=\s*/, end: '$',
contains: [

@@ -20,3 +39,17 @@ {

keywords: 'on off true false yes no',
contains: [hljs.QUOTE_STRING_MODE, hljs.NUMBER_MODE],
contains: [
{
className: 'variable',
variants: [
{begin: /\$[\w\d"][\w\d_]*/},
{begin: /\$\{(.*?)}/}
]
},
STRING,
{
className: 'number',
begin: /([\+\-]+)?[\d]+_[\d_]+/
},
hljs.NUMBER_MODE
],
relevance: 0

@@ -23,0 +56,0 @@ }

@@ -33,3 +33,3 @@ module.exports = function(hljs) {

keywords: KEYWORDS,
illegal: /<\//,
illegal: /<\/|#/,
contains: [

@@ -36,0 +36,0 @@ hljs.COMMENT(

@@ -109,4 +109,5 @@ module.exports = function(hljs) {

}
]
],
illegal: /#/
};
};

@@ -7,3 +7,3 @@ module.exports = function(hljs) {

literal:
'true false none minimal full all void and or not ' +
'true false none minimal full all void ' +
'bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft',

@@ -13,3 +13,3 @@ built_in:

'boolean bytes keyword list locale queue set stack staticarray ' +
'local var variable global data self inherited',
'local var variable global data self inherited currentcapture givenblock',
keyword:

@@ -67,3 +67,3 @@ 'error_code error_msg error_pop error_push error_reset cache ' +

hljs.C_BLOCK_COMMENT_MODE,
hljs.inherit(hljs.C_NUMBER_MODE, {begin: hljs.C_NUMBER_RE + '|(-?infinity|nan)\\b'}),
hljs.inherit(hljs.C_NUMBER_MODE, {begin: hljs.C_NUMBER_RE + '|(infinity|nan)\\b'}),
hljs.inherit(hljs.APOS_STRING_MODE, {illegal: null}),

@@ -96,3 +96,3 @@ hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null}),

{
begin: '-' + hljs.UNDERSCORE_IDENT_RE,
begin: '-(?!infinity)' + hljs.UNDERSCORE_IDENT_RE,
relevance: 0

@@ -113,3 +113,3 @@ },

{
begin: ':=|/(?!\\w)=?|[-+*%=<>&|!?\\\\]+',
begin: '->|\\\\|&&?|\\|\\||!(?!=|>)|(and|or|not)\\b',
relevance: 0

@@ -116,0 +116,0 @@ }

@@ -17,3 +17,4 @@ module.exports = function(hljs) {

// TODO: we have to figure out a way how to exclude \s*=
begin: /[a-zA-Z0-9-_]+(\s*=)/
begin: /[a-zA-Z0-9-_]+(\s*=)/,
relevance: 0
};

@@ -20,0 +21,0 @@ var SINGLE_QUOTE = {

@@ -38,9 +38,2 @@ module.exports = function(hljs) {

};
var COMMENT = hljs.COMMENT(
'^(__END__|__DATA__)',
'\\n$',
{
relevance: 5
}
);
var STRING_CONTAINS = [hljs.BACKSLASH_ESCAPE, SUBST, VAR];

@@ -50,3 +43,2 @@ var PERL_DEFAULT_CONTAINS = [

hljs.HASH_COMMENT_MODE,
COMMENT,
hljs.COMMENT(

@@ -122,3 +114,2 @@ '^\\=\\w',

hljs.HASH_COMMENT_MODE,
COMMENT,
{

@@ -146,2 +137,14 @@ className: 'regexp',

relevance: 0
},
{
begin: "^__DATA__$",
end: "^__END__$",
subLanguage: 'mojolicious',
contains: [
{
begin: "^@@.*",
end: "$",
className: "comment"
}
]
}

@@ -148,0 +151,0 @@ ];

module.exports = function(hljs) {
var PUPPET_TYPE_REFERENCE =
'augeas computer cron exec file filebucket host interface k5login macauthorization mailalias maillist mcx mount nagios_command ' +
'nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service firewall ' +
'nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod notify package resources ' +
'router schedule scheduled_task selboolean selmodule service ssh_authorized_key sshkey stage tidy user vlan yumrepo zfs zone zpool';
var PUPPET_ATTRIBUTES =
var PUPPET_KEYWORDS = {
keyword:
/* language keywords */
'and case default else elsif false if in import enherits node or true undef unless main settings $string ',
literal:
/* metaparameters */

@@ -26,13 +25,4 @@ 'alias audit before loglevel noop require subscribe tag ' +

'priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey ' +
'sslverify mounted';
var PUPPET_KEYWORDS =
{
keyword:
/* language keywords */
'and case class default define else elsif false if in import enherits node or true undef unless main settings $string ' + PUPPET_TYPE_REFERENCE,
literal:
PUPPET_ATTRIBUTES,
built_in:
'sslverify mounted',
built_in:
/* core facts */

@@ -53,5 +43,11 @@ 'architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers ' +

var IDENT_RE = '([A-Za-z_]|::)(\\w|::)*';
var TITLE = hljs.inherit(hljs.TITLE_MODE, {begin: IDENT_RE});
var VARIABLE = {className: 'variable', begin: '\\$' + IDENT_RE};
var STRING = {
className: 'string',
contains: [hljs.BACKSLASH_ESCAPE],
contains: [hljs.BACKSLASH_ESCAPE, VARIABLE],
variants: [

@@ -63,47 +59,52 @@ {begin: /'/, end: /'/},

var PUPPET_DEFAULT_CONTAINS = [
STRING,
COMMENT,
{
className: 'keyword',
beginKeywords: 'class', end: '$|;',
illegal: /=/,
contains: [
hljs.inherit(hljs.TITLE_MODE, {begin: '(::)?[A-Za-z_]\\w*(::\\w+)*'}),
COMMENT,
STRING
]
},
{
className: 'keyword',
begin: '([a-zA-Z_(::)]+ *\\{)',
contains:[STRING, COMMENT],
relevance: 0
},
{
className: 'keyword',
begin: '(\\}|\\{)',
relevance: 0
},
{
className: 'function',
begin:'[a-zA-Z_]+\\s*=>'
},
{
className: 'constant',
begin: '(::)?(\\b[A-Z][a-z_]*(::)?)+',
relevance: 0
},
{
className: 'number',
begin: '(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b',
relevance: 0
}
];
return {
aliases: ['pp'],
keywords: PUPPET_KEYWORDS,
contains: PUPPET_DEFAULT_CONTAINS
contains: [
COMMENT,
VARIABLE,
STRING,
{
beginKeywords: 'class', end: '\\{|;',
illegal: /=/,
contains: [TITLE, COMMENT]
},
{
beginKeywords: 'define', end: /\{/,
contains: [
{
className: 'title', begin: hljs.IDENT_RE, endsParent: true
}
]
},
{
begin: hljs.IDENT_RE + '\\s+\\{', returnBegin: true,
end: /\S/,
contains: [
{
className: 'name',
begin: hljs.IDENT_RE
},
{
begin: /\{/, end: /\}/,
keywords: PUPPET_KEYWORDS,
relevance: 0,
contains: [
STRING,
COMMENT,
{
begin:'[a-zA-Z_]+\\s*=>'
},
{
className: 'number',
begin: '(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b',
relevance: 0
},
VARIABLE
]
}
],
relevance: 0
}
]
}
};

@@ -77,3 +77,3 @@ module.exports = function(hljs) {

className: 'decorator',
begin: /@/, end: /$/
begin: /^[\t ]*@/, end: /$/
},

@@ -80,0 +80,0 @@ {

@@ -87,3 +87,3 @@ module.exports = function(hljs) {

className: 'function',
beginKeywords: 'def', end: ' |$|;',
beginKeywords: 'def', end: '$|;',
relevance: 0,

@@ -90,0 +90,0 @@ contains: [

@@ -51,4 +51,8 @@ module.exports = function(hljs) {

hljs.C_NUMBER_MODE,
{ className: 'array',
begin: '\#[a-zA-Z\ \.]+'
{
className: 'array',
variants: [
{begin: '#\\s+[a-zA-Z\\ \\.]*', relevance: 0}, // looks like #-comment
{begin: '#[a-zA-Z\\ \\.]+'}
]
}

@@ -55,0 +59,0 @@ ]

@@ -11,4 +11,4 @@ module.exports = function(hljs) {

'false fn for if impl in let loop match mod mut offsetof once priv ' +
'proc pub pure ref return self sizeof static struct super trait true ' +
'type typeof unsafe unsized use virtual while yield ' +
'proc pub pure ref return self Self sizeof static struct super trait true ' +
'type typeof unsafe unsized use virtual while where yield ' +
'int i8 i16 i32 i64 ' +

@@ -66,5 +66,7 @@ 'uint u8 u32 u64 ' +

{
beginKeywords: 'trait enum', end: '({|<)',
contains: [hljs.UNDERSCORE_TITLE_MODE],
illegal: '\\S'
beginKeywords: 'trait enum', end: '{',
contains: [
hljs.inherit(hljs.UNDERSCORE_TITLE_MODE, {endsParent: true})
],
illegal: '[\\w\\d]'
},

@@ -71,0 +73,0 @@ {

@@ -10,6 +10,6 @@ module.exports = function(hljs) {

beginKeywords:
'begin end start commit rollback savepoint lock alter create drop rename call '+
'delete do handler insert load replace select truncate update set show pragma grant '+
'merge describe use explain help declare prepare execute deallocate savepoint release '+
'unlock purge reset change stop analyze cache flush optimize repair kill '+
'begin end start commit rollback savepoint lock alter create drop rename call ' +
'delete do handler insert load replace select truncate update set show pragma grant ' +
'merge describe use explain help declare prepare execute deallocate savepoint release|0 ' +
'unlock purge reset change stop analyze cache flush optimize repair kill ' +
'install uninstall checksum restore check backup revoke',

@@ -19,57 +19,117 @@ end: /;/, endsWithParent: true,

keyword:
'abs absolute acos action add adddate addtime aes_decrypt aes_encrypt after aggregate all allocate alter ' +
'analyze and any are as asc ascii asin assertion at atan atan2 atn2 authorization authors avg backup ' +
'before begin benchmark between bin binlog bit_and bit_count bit_length bit_or bit_xor both by ' +
'cache call cascade cascaded case cast catalog ceil ceiling chain change changed char_length ' +
'character_length charindex charset check checksum checksum_agg choose close coalesce ' +
'coercibility collate collation collationproperty column columns columns_updated commit compress concat ' +
'concat_ws concurrent connect connection connection_id consistent constraint constraints continue ' +
'contributors conv convert convert_tz corresponding cos cot count count_big crc32 create cross cume_dist ' +
'curdate current current_date current_time current_timestamp current_user cursor curtime data database ' +
'databases datalength date_add date_format date_sub dateadd datediff datefromparts datename ' +
'datepart datetime2fromparts datetimeoffsetfromparts day dayname dayofmonth dayofweek dayofyear ' +
'deallocate declare decode default deferrable deferred degrees delayed delete des_decrypt ' +
'des_encrypt des_key_file desc describe descriptor diagnostics difference disconnect distinct ' +
'distinctrow div do domain double drop dumpfile each else elt enclosed encode encrypt end end-exec ' +
'engine engines eomonth errors escape escaped event eventdata events except exception exec execute ' +
'exists exp explain export_set extended external extract fast fetch field fields find_in_set ' +
'first first_value floor flush for force foreign format found found_rows from from_base64 ' +
'from_days from_unixtime full function get get_format get_lock getdate getutcdate global go goto grant ' +
'grants greatest group group_concat grouping grouping_id gtid_subset gtid_subtract handler having help ' +
'hex high_priority hosts hour ident_current ident_incr ident_seed identified identity if ifnull ignore ' +
'iif ilike immediate in index indicator inet6_aton inet6_ntoa inet_aton inet_ntoa infile initially inner ' +
'innodb input insert install instr intersect into is is_free_lock is_ipv4 ' +
'is_ipv4_compat is_ipv4_mapped is_not is_not_null is_used_lock isdate isnull isolation join key kill ' +
'language last last_day last_insert_id last_value lcase lead leading least leaves left len lenght level ' +
'like limit lines ln load load_file local localtime localtimestamp locate lock log log10 log2 logfile ' +
'logs low_priority lower lpad ltrim make_set makedate maketime master master_pos_wait match matched max ' +
'md5 medium merge microsecond mid min minute mod mode module month monthname mutex name_const names ' +
'national natural nchar next no no_write_to_binlog not now nullif nvarchar oct ' +
'octet_length of old_password on only open optimize option optionally or ord order outer outfile output ' +
'pad parse partial partition password patindex percent_rank percentile_cont percentile_disc period_add ' +
'period_diff pi plugin position pow power pragma precision prepare preserve primary prior privileges ' +
'procedure procedure_analyze processlist profile profiles public publishingservername purge quarter ' +
'query quick quote quotename radians rand read references regexp relative relaylog release ' +
'release_lock rename repair repeat replace replicate reset restore restrict return returns reverse ' +
'revoke right rlike rollback rollup round row row_count rows rpad rtrim savepoint schema scroll ' +
'sec_to_time second section select serializable server session session_user set sha sha1 sha2 share ' +
'show sign sin size slave sleep smalldatetimefromparts snapshot some soname soundex ' +
'sounds_like space sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache ' +
'sql_small_result sql_variant_property sqlstate sqrt square start starting status std ' +
'stddev stddev_pop stddev_samp stdev stdevp stop str str_to_date straight_join strcmp string stuff ' +
'subdate substr substring subtime subtring_index sum switchoffset sysdate sysdatetime sysdatetimeoffset ' +
'system_user sysutcdatetime table tables tablespace tan temporary terminated tertiary_weights then time ' +
'time_format time_to_sec timediff timefromparts timestamp timestampadd timestampdiff timezone_hour ' +
'timezone_minute to to_base64 to_days to_seconds todatetimeoffset trailing transaction translation ' +
'trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse ucase uncompress ' +
'uncompressed_length unhex unicode uninstall union unique unix_timestamp unknown unlock update upgrade ' +
'upped upper usage use user user_resources using utc_date utc_time utc_timestamp uuid uuid_short ' +
'validate_password_strength value values var var_pop var_samp variables variance varp ' +
'version view warnings week weekday weekofyear weight_string when whenever where with work write xml ' +
'xor year yearweek zon',
'abort abs absolute acc acce accep accept access accessed accessible account acos action activate add ' +
'addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias ' +
'allocate allow alter always analyze ancillary and any anydata anydataset anyschema anytype apply ' +
'archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan ' +
'atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid ' +
'authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile ' +
'before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float ' +
'binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound ' +
'buffer_cache buffer_pool build bulk by byte byteordermark bytes c cache caching call calling cancel ' +
'capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base ' +
'char_length character_length characters characterset charindex charset charsetform charsetid check ' +
'checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close ' +
'cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation ' +
'collect colu colum column column_value columns columns_updated comment commit compact compatibility ' +
'compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn ' +
'connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection ' +
'consider consistent constant constraint constraints constructor container content contents context ' +
'contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost ' +
'count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation ' +
'critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user ' +
'cursor curtime customdatum cycle d data database databases datafile datafiles datalength date_add ' +
'date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts ' +
'day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate ' +
'declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults ' +
'deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank ' +
'depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor ' +
'deterministic diagnostics difference dimension direct_load directory disable disable_all ' +
'disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div ' +
'do document domain dotnet double downgrade drop dumpfile duplicate duration e each edition editionable ' +
'editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt ' +
'end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors ' +
'escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding ' +
'execu execut execute exempt exists exit exp expire explain export export_set extended extent external ' +
'external_1 external_2 externally extract f failed failed_login_attempts failover failure far fast ' +
'feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final ' +
'finish first first_value fixed flash_cache flashback floor flush following follows for forall force ' +
'form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ' +
'ftp full function g general generated get get_format get_lock getdate getutcdate global global_name ' +
'globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups ' +
'gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex ' +
'hierarchy high high_priority hosts hour http i id ident_current ident_incr ident_seed identified ' +
'identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment ' +
'index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile ' +
'initial initialized initially initrans inmemory inner innodb input insert install instance instantiable ' +
'instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat ' +
'is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists ' +
'k keep keep_duplicates key keys kill l language large last|0 last_day last_insert_id last_value lax lcase ' +
'lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit ' +
'lines link|0 list|0 listagg little ln load load_file lob lobs local localtime localtimestamp locate ' +
'locator lock|0 locked log log10 log2 logfile logfiles logging logical logical_reads_per_call ' +
'logoff logon logs long loop|0 low low_priority lower lpad lrtrim ltrim m main make_set makedate maketime ' +
'managed management manual map mapping mask master master_pos_wait match matched materialized max ' +
'maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans ' +
'md5 measures median medium member memcompress memory merge microsecond mid migration min minextents ' +
'minimum mining minus minute minvalue missing mod mode model modification modify module monitoring month ' +
'months mount move movement multiset mutex n name name_const names nan national native natural nav nchar ' +
'nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile ' +
'nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile ' +
'nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder ' +
'nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck ' +
'noswitch not nothing notice notrim novalidate now nowait nth_value nullif nulls num numb numbe ' +
'nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ' +
'ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old ' +
'on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date ' +
'oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary ' +
'out outer outfile outline output over overflow overriding p package pad parallel parallel_enable ' +
'parameters parent parse partial partition partitions pascal passing password password_grace_time ' +
'password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex ' +
'pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc ' +
'performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin ' +
'policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction ' +
'prediction_cost prediction_details prediction_probability prediction_set prepare present preserve ' +
'prior priority private private_sga privileges procedural procedure procedure_analyze processlist ' +
'profiles project prompt protection public publishingservername purge quarter query quick quiesce quota ' +
'quotename radians raise|0 rand range rank raw read reads readsize rebuild record records ' +
'recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh ' +
'regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy ' +
'reject rekey relational relative relaylog release|0 release_lock relies_on relocate rely rem remainder ' +
'repair repeat replace replicate replication required reset resetlogs resize resource respect restore ' +
'restricted result result_cache resumable resume retention return returning returns reuse reverse revoke ' +
'right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows ' +
'rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll ' +
'sdo_georaster sdo_topo_geometry search sec_to_time second section securefile security seed segment ' +
'self sequence sequential serializable server servererror session session_user sessions_per_user set ' +
'sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor ' +
'si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin ' +
'size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex ' +
'source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows ' +
'sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone ' +
'standby start starting startup statement static statistics stats_binomial_test stats_crosstab ' +
'stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep ' +
'stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev ' +
'stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate ' +
'subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum ' +
'suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate ' +
'sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime t table tables tablespace tan tdo ' +
'template temporary terminated tertiary_weights test than then thread through tier ties time time_format ' +
'time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr ' +
'timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking ' +
'transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate ' +
'try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress ' +
'under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unpivot ' +
'unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert ' +
'url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date ' +
'utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var ' +
'var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray ' +
'verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear ' +
'wellformed when whene whenev wheneve whenever where while whitespace with within without work wrapped ' +
'xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces ' +
'xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek',
literal:
'true false null',
built_in:
'array bigint binary bit blob boolean char character date dec decimal float int integer interval number ' +
'numeric real serial smallint varchar varying int8 serial8 text'
'array bigint binary bit blob boolean char character date dec decimal float int int8 integer interval number ' +
'numeric real record serial serial8 smallint text varchar varying void'
},

@@ -76,0 +136,0 @@ contains: [

@@ -40,3 +40,3 @@ module.exports = function(hljs) {

case_insensitive: true,
subLanguage: 'xml', subLanguageMode: 'continuous',
subLanguage: 'xml',
contains: [

@@ -43,0 +43,0 @@ hljs.COMMENT(/\{#/, /#}/),

@@ -6,4 +6,4 @@ module.exports = function(hljs) {

'instanceof with throw case default try this switch continue typeof delete ' +
'let yield const class public private get set super interface extends' +
'static constructor implements enum export import declare type protected',
'let yield const class public private get set super ' +
'static implements enum export import declare type protected',
literal:

@@ -19,3 +19,3 @@ 'true false null undefined NaN Infinity',

'module console window document any number boolean string void'
}
};

@@ -50,8 +50,3 @@ return {

hljs.C_BLOCK_COMMENT_MODE,
hljs.REGEXP_MODE,
{ // E4X
begin: /</, end: />;/,
relevance: 0,
subLanguage: 'xml'
}
hljs.REGEXP_MODE
],

@@ -85,4 +80,3 @@ relevance: 0

className: 'constructor',
begin: 'constructor', end: /\{/, excludeEnd: true,
keywords: KEYWORDS,
beginKeywords: 'constructor', end: /\{/, excludeEnd: true,
relevance: 10

@@ -96,3 +90,4 @@ },

className: 'interface',
beginKeywords: 'interface', end: /\{/, excludeEnd: true
beginKeywords: 'interface', end: /\{/, excludeEnd: true,
keywords: 'interface extends'
},

@@ -99,0 +94,0 @@ {

module.exports = function(hljs) {
return {
subLanguage: 'xml', subLanguageMode: 'continuous',
subLanguage: 'xml',
contains: [

@@ -5,0 +5,0 @@ {

@@ -77,58 +77,46 @@ module.exports = function(hljs) {

),
// Float number and x87 BCD
{
className: 'number',
begin: '\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*\\.?[0-9_]*(?:[pP](?:[+-]?[0-9_]+)?)?)\\b',
relevance: 0
variants: [
// Float number and x87 BCD
{
begin: '\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|' +
'(0[Xx])?[0-9][0-9_]*\\.?[0-9_]*(?:[pP](?:[+-]?[0-9_]+)?)?)\\b',
relevance: 0
},
// Hex number in $
{ begin: '\\$[0-9][0-9A-Fa-f]*', relevance: 0 },
// Number in H,D,T,Q,O,B,Y suffix
{ begin: '\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b' },
// Number in X,D,T,Q,O,B,Y prefix
{ begin: '\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b'}
]
},
// Hex number in $
{
className: 'number',
begin: '\\$[0-9][0-9A-Fa-f]*',
relevance: 0
},
// Number in H,X,D,T,Q,O,B,Y suffix
{
className: 'number',
begin: '\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[HhXx]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b'
},
// Number in H,X,D,T,Q,O,B,Y prefix
{
className: 'number',
begin: '\\b(?:0[HhXx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b'
},
// Double quote string
hljs.QUOTE_STRING_MODE,
// Single-quoted string
{
className: 'string',
begin: '\'',
end: '[^\\\\]\'',
variants: [
// Single-quoted string
{ begin: '\'', end: '[^\\\\]\'' },
// Backquoted string
{ begin: '`', end: '[^\\\\]`' },
// Section name
{ begin: '\\.[A-Za-z0-9]+' }
],
relevance: 0
},
// Backquoted string
{
className: 'string',
begin: '`',
end: '[^\\\\]`',
relevance: 0
},
// Section name
{
className: 'string',
begin: '\\.[A-Za-z0-9]+',
relevance: 0
},
// Global label and local label
{
className: 'label',
begin: '^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)',
variants: [
// Global label and local label
{ begin: '^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)' },
// Macro-local label
{ begin: '^\\s*%%[A-Za-z0-9_$#@~.?]*:' }
],
relevance: 0
},
// Macro-local label
{
className: 'label',
begin: '^\\s*%%[A-Za-z0-9_$#@~.?]*:',
relevance: 0
},
// Macro parameter

@@ -135,0 +123,0 @@ {

@@ -5,3 +5,3 @@ module.exports = function(hljs) {

begin: /<\?(php)?(?!\w)/, end: /\?>/,
subLanguage: 'php', subLanguageMode: 'continuous'
subLanguage: 'php'
};

@@ -82,3 +82,3 @@ var TAG_INTERNALS = {

end: '\<\/script\>', returnEnd: true,
subLanguage: ''
subLanguage: ['actionscript', 'javascript', 'handlebars']
}

@@ -85,0 +85,0 @@ },

@@ -9,3 +9,3 @@ {

"homepage": "https://highlightjs.org/",
"version": "8.6.0",
"version": "8.7.0",
"author": {

@@ -649,6 +649,2 @@ "name": "Ivan Sagalaev",

{
"name": "Raivo Laanemets",
"email": "raivo@infdot.com"
},
{
"name": "David Anson",

@@ -680,2 +676,34 @@ "email": "david@dlaa.me"

"email": "jay.strybis@gmail.com"
},
{
"name": "Guillaume Gomez",
"email": "guillaume1.gomez@gmail.com"
},
{
"name": "Janis Voigtländer",
"email": "janis.voigtlaender@gmail.com"
},
{
"name": "Dirk Kirsten",
"email": "dk@basex.org"
},
{
"name": "MY Sun",
"email": "simonmysun@gmail.com"
},
{
"name": "Vadimtro",
"email": "vadimtro@yahoo.com"
},
{
"name": "Benjamin Auder",
"email": "benjamin.auder@gmail.com"
},
{
"name": "Dotan Dimet",
"email": "dotan@corky.net"
},
{
"name": "Manh Tuan",
"email": "junookyo@gmail.com"
}

@@ -699,2 +727,3 @@ ],

"devDependencies": {
"bluebird": "^2.9.30",
"commander": "^2.3.0",

@@ -708,4 +737,4 @@ "del": "^1.1.1",

"mocha": "^2.0.1",
"should": "^6.0.1"
"should": "^7.0.1"
}
}

@@ -5,11 +5,12 @@ # Highlight.js

Highlight.js is a syntax highlighter written in JavaScript. It works in the
browser as well as on the server. It works with pretty much any markup,
doesn’t depend on any framework and has automatic language detection.
Highlight.js is a syntax highlighter written in JavaScript. It works in
the browser as well as on the server. It works with pretty much any
markup, doesn’t depend on any framework and has automatic language
detection.
## Getting Started
The bare minimum for using highlight.js on a web page is linking to the library
along with one of the styles and calling [`initHighlightingOnLoad`][1]:
The bare minimum for using highlight.js on a web page is linking to the
library along with one of the styles and calling
[`initHighlightingOnLoad`][1]:

@@ -22,5 +23,5 @@ ```html

This will find and highlight code inside of `<pre><code>` tags; it tries to detect
the language automatically. If automatic detection doesn’t work for you, you can
specify the language in the `class` attribute:
This will find and highlight code inside of `<pre><code>` tags; it tries
to detect the language automatically. If automatic detection doesn’t
work for you, you can specify the language in the `class` attribute:

@@ -31,4 +32,5 @@ ```html

The list of supported language classes is available in the [class reference][8].
Classes can also be prefixed with either `language-` or `lang-`.
The list of supported language classes is available in the [class
reference][2]. Classes can also be prefixed with either `language-` or
`lang-`.

@@ -44,6 +46,7 @@ To disable highlighting altogether use the `nohighlight` class:

When you need a bit more control over the initialization of
highlight.js, you can use the [`highlightBlock`][2] and [`configure`][3]
highlight.js, you can use the [`highlightBlock`][3] and [`configure`][4]
functions. This allows you to control *what* to highlight and *when*.
Here’s an equivalent way to calling [`initHighlightingOnLoad`][1] using jQuery:
Here’s an equivalent way to calling [`initHighlightingOnLoad`][1] using
jQuery:

@@ -58,5 +61,5 @@ ```javascript

You can use any tags instead of `<pre><code>` to mark up your code. If you don't
use a container that preserve line breaks you will need to configure
highlight.js to use the `<br>` tag:
You can use any tags instead of `<pre><code>` to mark up your code. If
you don't use a container that preserve line breaks you will need to
configure highlight.js to use the `<br>` tag:

@@ -71,21 +74,23 @@ ```javascript

For other options refer to the documentation for [`configure`][3].
For other options refer to the documentation for [`configure`][4].
## Getting the Library
You can get highlight.js as a hosted or custom-build browser script or as a
server module. Head over to the [download page][4] for all the options.
You can get highlight.js as a hosted, or custom-build, browser script or
as a server module. Right out of the box the browser script supports
both AMD and CommonJS, so if you wish you can use RequireJS or
Browserify without having to build from source. The server module also
works perfectly fine with Browserify, but there is the option to use a
build specific to browsers rather than something meant for a server.
Head over to the [download page][5] for all the options.
**Note:** the library is not supposed to work straight from the source on
GitHub; it requires building. If none of the pre-packaged options work for you
refer to the [building documentation][5].
**Note:** the library is not supposed to work straight from the source
on GitHub; it requires building. If none of the pre-packaged options
work for you refer to the [building documentation][6].
## License
Highlight.js is released under the BSD License. See [LICENSE][10] file for
details.
Highlight.js is released under the BSD License. See [LICENSE][7] file
for details.
## Links

@@ -98,11 +103,11 @@

Authors and contributors are listed in the [AUTHORS.en.txt][9] file.
Authors and contributors are listed in the [AUTHORS.en.txt][8] file.
[1]: http://highlightjs.readthedocs.org/en/latest/api.html#inithighlightingonload
[2]: http://highlightjs.readthedocs.org/en/latest/api.html#highlightblock-block
[3]: http://highlightjs.readthedocs.org/en/latest/api.html#configure-options
[4]: https://highlightjs.org/download/
[5]: http://highlightjs.readthedocs.org/en/latest/building-testing.html
[8]: http://highlightjs.readthedocs.org/en/latest/css-classes-reference.html
[9]: https://github.com/isagalaev/highlight.js/blob/master/AUTHORS.en.txt
[10]: https://github.com/isagalaev/highlight.js/blob/master/LICENSE
[2]: http://highlightjs.readthedocs.org/en/latest/css-classes-reference.html
[3]: http://highlightjs.readthedocs.org/en/latest/api.html#highlightblock-block
[4]: http://highlightjs.readthedocs.org/en/latest/api.html#configure-options
[5]: https://highlightjs.org/download/
[6]: http://highlightjs.readthedocs.org/en/latest/building-testing.html
[7]: https://github.com/isagalaev/highlight.js/blob/master/LICENSE
[8]: https://github.com/isagalaev/highlight.js/blob/master/AUTHORS.en.txt

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc