mirror of
https://github.com/FlightControl-Master/MOOSE_DOCS.git
synced 2025-08-15 10:37:49 +00:00
Clean
This commit is contained in:
23
Highlight/languages/erb.js
Normal file
23
Highlight/languages/erb.js
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
Language: ERB (Embedded Ruby)
|
||||
Requires: xml.js, ruby.js
|
||||
Author: Lucas Mazza <lucastmazza@gmail.com>
|
||||
Contributors: Kassio Borges <kassioborgesm@gmail.com>
|
||||
Description: "Bridge" language defining fragments of Ruby in HTML within <% .. %>
|
||||
Category: template
|
||||
*/
|
||||
|
||||
function(hljs) {
|
||||
return {
|
||||
subLanguage: 'xml',
|
||||
contains: [
|
||||
hljs.COMMENT('<%#', '%>'),
|
||||
{
|
||||
begin: '<%[%=-]?', end: '[%-]?%>',
|
||||
subLanguage: 'ruby',
|
||||
excludeBegin: true,
|
||||
excludeEnd: true
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user