lang/markup.js
function addInlined(tagName, lang) {
      var includedCdataInside = {}
      includedCdataInside['language-' + lang] = {
        pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
        lookbehind: true,
        inside: Prism.languages[lang]
      }
      includedCdataInside['cdata'] = /^<!\[CDATA\[|\]\]>$/i
      var inside = {
        'included-cdata': {
          pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
          inside: includedCdataInside
        }
      }
      inside['language-' + lang] = {
        pattern: /[\s\S]+/,
        inside: Prism.languages[lang]
      }
      var def = {}
      def[tagName] = {
        pattern: RegExp(
          /(<__[\s\S]*?>)(?:<!\[CDATA\[[\s\S]*?\]\]>\s*|[\s\S])*?(?=<\/__>)/.source.replace(
            /__/g,
            tagName
          ),
          'i'
        ),
        lookbehind: true,
        greedy: true,
        inside: inside
      }
      Prism.languages.insertBefore('markup', 'cdata', def)
    }
function addInlined(tagName, lang) {
      var includedCdataInside = {}
      includedCdataInside['language-' + lang] = {
        pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
        lookbehind: true,
        inside: Prism.languages[lang]
      }
      includedCdataInside['cdata'] = /^<!\[CDATA\[|\]\]>$/i
      var inside = {
        'included-cdata': {
          pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
          inside: includedCdataInside
        }
      }
      inside['language-' + lang] = {
        pattern: /[\s\S]+/,
        inside: Prism.languages[lang]
      }
      var def = {}
      def[tagName] = {
        pattern: RegExp(
          /(<__[\s\S]*?>)(?:<!\[CDATA\[[\s\S]*?\]\]>\s*|[\s\S])*?(?=<\/__>)/.source.replace(
            /__/g,
            tagName
          ),
          'i'
        ),
        lookbehind: true,
        greedy: true,
        inside: inside
      }
      Prism.languages.insertBefore('markup', 'cdata', def)
    }
function addInlined ( tagName , lang ) { var includedCdataInside = { } includedCdataInside [ 'language-' + lang ] = { pattern : / (^<!\[CDATA\[)[\s\S]+?(?=\]\]>$) / i , lookbehind : true , inside : Prism . languages [ lang ] } includedCdataInside [ 'cdata' ] = / ^<!\[CDATA\[|\]\]>$ / i var inside = { 'included-cdata' : { pattern : / <!\[CDATA\[[\s\S]*?\]\]> / i , inside : includedCdataInside } } inside [ 'language-' + lang ] = { pattern : / [\s\S]+ / , inside : Prism . languages [ lang ] } var def = { } def [ tagName ] = { pattern : RegExp ( / (<__[\s\S]*?>)(?:<!\[CDATA\[[\s\S]*?\]\]>\s*|[\s\S])*?(?=<\/__>) / . source . replace ( / __ / g , tagName ) , 'i' ) , lookbehind : true , greedy : true , inside : inside } Prism . languages . insertBefore ( 'markup' , 'cdata' , def ) }
Adds an inlined language to markup.

An example of an inlined language is CSS with `<style>` tags.

@param {string} tagName The name of the tag that contains the inlined language. This name will be treated as
case insensitive.
@param {string} lang The language key.
@example
addInlined('style', 'css');
Adds an inlined language to markup .