// var common = new EntryPoint(result, 'vs/editor/common/languages.common');
// var worker = new EntryPoint(result, ['vs/editor/common/languages.common', 'vs/base/common/worker/workerServer', 'vs/editor/common/worker/editorWorkerServer']);
// ---- beautify-html (shared btw html and xml) -----------------------------
"TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION",
"",
"1. Definitions.",
"",
"\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.",
"",
"\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.",
"",
"\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.",
"",
"\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.",
"",
"\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.",
"",
"\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.",
"",
"\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).",
"",
"\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.",
"",
"\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"",
"",
"\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.",
"",
"2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.",
"",
"3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.",
"",
"4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:",
"",
"You must give any other recipients of the Work or Derivative Works a copy of this License; and",
"",
"You must cause any modified files to carry prominent notices stating that You changed the files; and",
"",
"You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and",
"",
"If the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.",
"",
"5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.",
"",
"6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.",
"",
"7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.",
"",
"8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.",
"",
"9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.",
'description':nls.localize('format.unformatted',"List of tags, comma separated, that shouldn't be reformatted. 'null' defaults to all tags listed at https://www.w3.org/TR/html5/dom.html#phrasing-content."),
},
'html.format.indentInnerHtml':{
'type':'boolean',
'default':false,
'description':nls.localize('format.indentInnerHtml',"Indent <head> and <body> sections."),
},
'html.format.preserveNewLines':{
'type':'boolean',
'default':true,
'description':nls.localize('format.preserveNewLines',"Whether existing line breaks before elements should be preserved. Only works before elements, not inside tags or for text."),
},
'html.format.maxPreserveNewLines':{
'type':['number','null'],
'default':null,
'description':nls.localize('format.maxPreserveNewLines',"Maximum number of line breaks to be preserved in one chunk. Use 'null' for unlimited."),
},
'html.format.indentHandlebars':{
'type':'boolean',
'default':false,
'description':nls.localize('format.indentHandlebars',"Format and indent {{#foo}} and {{/foo}}."),
},
'html.format.endWithNewline':{
'type':'boolean',
'default':false,
'description':nls.localize('format.endWithNewline',"End with a newline."),
},
'html.format.extraLiners':{
'type':['string','null'],
'default':'head, body, /html',
'description':nls.localize('format.extraLiners',"List of tags, comma separated, that should have an extra newline before them. 'null' defaults to \"head, body, /html\"."),
},
'html.suggest.angular1':{
'type':['boolean'],
'default':true,
'description':nls.localize('suggest.angular1',"Configures if the built-in HTML language support suggests Angular V1 tags and properties."),
},
'html.suggest.ionic':{
'type':['boolean'],
'default':true,
'description':nls.localize('suggest.ionic',"Configures if the built-in HTML language support suggests Ionic tags, properties and values."),
},
'html.suggest.html5':{
'type':['boolean'],
'default':true,
'description':nls.localize('suggest.html5',"Configures if the built-in HTML language support suggests HTML5 tags, properties and values."),
// HTML tag information sourced from http://www.w3.org/TR/2015/WD-html51-20151008/
exportconstHTML_TAGS:ITagSet={
// The root element
html:newHTMLTagSpecification(
nls.localize('tags.html','The html element represents the root of an HTML document.'),
['manifest']),
// Document metadata
head:newHTMLTagSpecification(
nls.localize('tags.head','The head element represents a collection of metadata for the Document.')),
title:newHTMLTagSpecification(
nls.localize('tags.title','The title element represents the document\'s title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user\'s history or bookmarks, or in search results. The document\'s title is often different from its first heading, since the first heading does not have to stand alone when taken out of context.')),
base:newHTMLTagSpecification(
nls.localize('tags.base','The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information.'),
['href','target']),
link:newHTMLTagSpecification(
nls.localize('tags.link','The link element allows authors to link their document to other resources.'),
nls.localize('tags.meta','The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements.'),
['name','http-equiv','content','charset']),
style:newHTMLTagSpecification(
nls.localize('tags.style','The style element allows authors to embed style information in their documents. The style element is one of several inputs to the styling processing model. The element does not represent content for the user.'),
['media','nonce','type','scoped:v']),
// Sections
body:newHTMLTagSpecification(
nls.localize('tags.body','The body element represents the content of the document.'),
nls.localize('tags.article','The article element represents a complete, or self-contained, composition in a document, page, application, or site and that is, in principle, independently distributable or reusable, e.g. in syndication. This could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content. Each article should be identified, typically by including a heading (h1–h6 element) as a child of the article element.')),
section:newHTMLTagSpecification(
nls.localize('tags.section','The section element represents a generic section of a document or application. A section, in this context, is a thematic grouping of content. Each section should be identified, typically by including a heading ( h1- h6 element) as a child of the section element.')),
nav:newHTMLTagSpecification(
nls.localize('tags.nav','The nav element represents a section of a page that links to other pages or to parts within the page: a section with navigation links.')),
aside:newHTMLTagSpecification(
nls.localize('tags.aside','The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography.')),
h1:newHTMLTagSpecification(
nls.localize('tags.h1','The h1 element represents a section heading.')),
h2:newHTMLTagSpecification(
nls.localize('tags.h2','The h2 element represents a section heading.')),
h3:newHTMLTagSpecification(
nls.localize('tags.h3','The h3 element represents a section heading.')),
h4:newHTMLTagSpecification(
nls.localize('tags.h4','The h4 element represents a section heading.')),
h5:newHTMLTagSpecification(
nls.localize('tags.h5','The h5 element represents a section heading.')),
h6:newHTMLTagSpecification(
nls.localize('tags.h6','The h6 element represents a section heading.')),
header:newHTMLTagSpecification(
nls.localize('tags.header','The header element represents introductory content for its nearest ancestor sectioning content or sectioning root element. A header typically contains a group of introductory or navigational aids. When the nearest ancestor sectioning content or sectioning root element is the body element, then it applies to the whole page.')),
footer:newHTMLTagSpecification(
nls.localize('tags.footer','The footer element represents a footer for its nearest ancestor sectioning content or sectioning root element. A footer typically contains information about its section such as who wrote it, links to related documents, copyright data, and the like.')),
address:newHTMLTagSpecification(
nls.localize('tags.address','The address element represents the contact information for its nearest article or body element ancestor. If that is the body element, then the contact information applies to the document as a whole.')),
// Grouping content
p:newHTMLTagSpecification(
nls.localize('tags.p','The p element represents a paragraph.')),
hr:newHTMLTagSpecification(
nls.localize('tags.hr','The hr element represents a paragraph-level thematic break, e.g. a scene change in a story, or a transition to another topic within a section of a reference book.')),
pre:newHTMLTagSpecification(
nls.localize('tags.pre','The pre element represents a block of preformatted text, in which structure is represented by typographic conventions rather than by elements.')),
blockquote:newHTMLTagSpecification(
nls.localize('tags.blockquote','The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a footer or cite element, and optionally with in-line changes such as annotations and abbreviations.'),
['cite']),
ol:newHTMLTagSpecification(
nls.localize('tags.ol','The ol element represents a list of items, where the items have been intentionally ordered, such that changing the order would change the meaning of the document.'),
['reversed:v','start','type:lt']),
ul:newHTMLTagSpecification(
nls.localize('tags.ul','The ul element represents a list of items, where the order of the items is not important — that is, where changing the order would not materially change the meaning of the document.')),
li:newHTMLTagSpecification(
nls.localize('tags.li','The li element represents a list item. If its parent element is an ol, ul, or menu element, then the element is an item of the parent element\'s list, as defined for those elements. Otherwise, the list item has no defined list-related relationship to any other li element.'),
['value']),
dl:newHTMLTagSpecification(
nls.localize('tags.dl','The dl element represents an association list consisting of zero or more name-value groups (a description list). A name-value group consists of one or more names (dt elements) followed by one or more values (dd elements), ignoring any nodes other than dt and dd elements. Within a single dl element, there should not be more than one dt element for each name.')),
dt:newHTMLTagSpecification(
nls.localize('tags.dt','The dt element represents the term, or name, part of a term-description group in a description list (dl element).')),
dd:newHTMLTagSpecification(
nls.localize('tags.dd','The dd element represents the description, definition, or value, part of a term-description group in a description list (dl element).')),
figure:newHTMLTagSpecification(
nls.localize('tags.figure','The figure element represents some flow content, optionally with a caption, that is self-contained (like a complete sentence) and is typically referenced as a single unit from the main flow of the document.')),
figcaption:newHTMLTagSpecification(
nls.localize('tags.figcaption','The figcaption element represents a caption or legend for the rest of the contents of the figcaption element\'s parent figure element, if any.')),
main:newHTMLTagSpecification(
nls.localize('tags.main','The main element represents the main content of the body of a document or application. The main content area consists of content that is directly related to or expands upon the central topic of a document or central functionality of an application.')),
div:newHTMLTagSpecification(
nls.localize('tags.div','The div element has no special meaning at all. It represents its children. It can be used with the class, lang, and title attributes to mark up semantics common to a group of consecutive elements.')),
// Text-level semantics
a:newHTMLTagSpecification(
nls.localize('tags.a','If the a element has an href attribute, then it represents a hyperlink (a hypertext anchor) labeled by its contents.'),
nls.localize('tags.em','The em element represents stress emphasis of its contents.')),
strong:newHTMLTagSpecification(
nls.localize('tags.strong','The strong element represents strong importance, seriousness, or urgency for its contents.')),
small:newHTMLTagSpecification(
nls.localize('tags.small','The small element represents side comments such as small print.')),
s:newHTMLTagSpecification(
nls.localize('tags.s','The s element represents contents that are no longer accurate or no longer relevant.')),
cite:newHTMLTagSpecification(
nls.localize('tags.cite','The cite element represents a reference to a creative work. It must include the title of the work or the name of the author(person, people or organization) or an URL reference, or a reference in abbreviated form as per the conventions used for the addition of citation metadata.')),
q:newHTMLTagSpecification(
nls.localize('tags.q','The q element represents some phrasing content quoted from another source.'),
['cite']),
dfn:newHTMLTagSpecification(
nls.localize('tags.dfn','The dfn element represents the defining instance of a term. The paragraph, description list group, or section that is the nearest ancestor of the dfn element must also contain the definition(s) for the term given by the dfn element.')),
abbr:newHTMLTagSpecification(
nls.localize('tags.abbr','The abbr element represents an abbreviation or acronym, optionally with its expansion. The title attribute may be used to provide an expansion of the abbreviation. The attribute, if specified, must contain an expansion of the abbreviation, and nothing else.')),
ruby:newHTMLTagSpecification(
nls.localize('tags.ruby','The ruby element allows one or more spans of phrasing content to be marked with ruby annotations. Ruby annotations are short runs of text presented alongside base text, primarily used in East Asian typography as a guide for pronunciation or to include other annotations. In Japanese, this form of typography is also known as furigana. Ruby text can appear on either side, and sometimes both sides, of the base text, and it is possible to control its position using CSS. A more complete introduction to ruby can be found in the Use Cases & Exploratory Approaches for Ruby Markup document as well as in CSS Ruby Module Level 1. [RUBY-UC] [CSSRUBY]')),
rb:newHTMLTagSpecification(
nls.localize('tags.rb','The rb element marks the base text component of a ruby annotation. When it is the child of a ruby element, it doesn\'t represent anything itself, but its parent ruby element uses it as part of determining what it represents.')),
rt:newHTMLTagSpecification(
nls.localize('tags.rt','The rt element marks the ruby text component of a ruby annotation. When it is the child of a ruby element or of an rtc element that is itself the child of a ruby element, it doesn\'t represent anything itself, but its ancestor ruby element uses it as part of determining what it represents.')),
// <rtc> is not yet supported by 2+ browsers
//rtc: new HTMLTagSpecification(
// nls.localize('tags.rtc', 'The rtc element marks a ruby text container for ruby text components in a ruby annotation. When it is the child of a ruby element it doesn\'t represent anything itself, but its parent ruby element uses it as part of determining what it represents.')),
rp:newHTMLTagSpecification(
nls.localize('tags.rp','The rp element is used to provide fallback text to be shown by user agents that don\'t support ruby annotations. One widespread convention is to provide parentheses around the ruby text component of a ruby annotation.')),
// <data> is not yet supported by 2+ browsers
//data: new HTMLTagSpecification(
// nls.localize('tags.data', 'The data element represents its contents, along with a machine-readable form of those contents in the value attribute.')),
time:newHTMLTagSpecification(
nls.localize('tags.time','The time element represents its contents, along with a machine-readable form of those contents in the datetime attribute. The kind of content is limited to various kinds of dates, times, time-zone offsets, and durations, as described below.'),
['datetime']),
code:newHTMLTagSpecification(
nls.localize('tags.code','The code element represents a fragment of computer code. This could be an XML element name, a file name, a computer program, or any other string that a computer would recognize.')),
var:newHTMLTagSpecification(
nls.localize('tags.var','The var element represents a variable. This could be an actual variable in a mathematical expression or programming context, an identifier representing a constant, a symbol identifying a physical quantity, a function parameter, or just be a term used as a placeholder in prose.')),
samp:newHTMLTagSpecification(
nls.localize('tags.samp','The samp element represents sample or quoted output from another program or computing system.')),
kbd:newHTMLTagSpecification(
nls.localize('tags.kbd','The kbd element represents user input (typically keyboard input, although it may also be used to represent other input, such as voice commands).')),
sub:newHTMLTagSpecification(
nls.localize('tags.sub','The sub element represents a subscript.')),
sup:newHTMLTagSpecification(
nls.localize('tags.sup','The sup element represents a superscript.')),
i:newHTMLTagSpecification(
nls.localize('tags.i','The i element represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose in a manner indicating a different quality of text, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, transliteration, a thought, or a ship name in Western texts.')),
b:newHTMLTagSpecification(
nls.localize('tags.b','The b element represents a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood, such as key words in a document abstract, product names in a review, actionable words in interactive text-driven software, or an article lede.')),
u:newHTMLTagSpecification(
nls.localize('tags.u','The u element represents a span of text with an unarticulated, though explicitly rendered, non-textual annotation, such as labeling the text as being a proper name in Chinese text (a Chinese proper name mark), or labeling the text as being misspelt.')),
mark:newHTMLTagSpecification(
nls.localize('tags.mark','The mark element represents a run of text in one document marked or highlighted for reference purposes, due to its relevance in another context. When used in a quotation or other block of text referred to from the prose, it indicates a highlight that was not originally present but which has been added to bring the reader\'s attention to a part of the text that might not have been considered important by the original author when the block was originally written, but which is now under previously unexpected scrutiny. When used in the main prose of a document, it indicates a part of the document that has been highlighted due to its likely relevance to the user\'s current activity.')),
bdi:newHTMLTagSpecification(
nls.localize('tags.bdi','The bdi element represents a span of text that is to be isolated from its surroundings for the purposes of bidirectional text formatting. [BIDI]')),
bdo:newHTMLTagSpecification(
nls.localize('tags.dbo','The bdo element represents explicit text directionality formatting control for its children. It allows authors to override the Unicode bidirectional algorithm by explicitly specifying a direction override. [BIDI]')),
span:newHTMLTagSpecification(
nls.localize('tags.span','The span element doesn\'t mean anything on its own, but can be useful when used together with the global attributes, e.g. class, lang, or dir. It represents its children.')),
br:newHTMLTagSpecification(
nls.localize('tags.br','The br element represents a line break.')),
wbr:newHTMLTagSpecification(
nls.localize('tags.wbr','The wbr element represents a line break opportunity.')),
// Edits
ins:newHTMLTagSpecification(
nls.localize('tags.ins','The ins element represents an addition to the document.')),
del:newHTMLTagSpecification(
nls.localize('tags.del','The del element represents a removal from the document.'),
['cite','datetime']),
// Embedded content
picture:newHTMLTagSpecification(
nls.localize('tags.picture','The picture element is a container which provides multiple sources to its contained img element to allow authors to declaratively control or give hints to the user agent about which image resource to use, based on the screen pixel density, viewport size, image format, and other factors. It represents its children.')),
img:newHTMLTagSpecification(
nls.localize('tags.img','An img element represents an image.'),
nls.localize('tags.embed','The embed element provides an integration point for an external (typically non-HTML) application or interactive content.'),
['src','type','width','height']),
object:newHTMLTagSpecification(
nls.localize('tags.object','The object element can represent an external resource, which, depending on the type of the resource, will either be treated as an image, as a nested browsing context, or as an external resource to be processed by a plugin.'),
nls.localize('tags.source','The source element allows authors to specify multiple alternative media resources for media elements. It does not represent anything on its own.'),
// 'When the source element has a parent that is a picture element, the source element allows authors to specify multiple alternative source sets for img elements.'
['src','type']),
track:newHTMLTagSpecification(
nls.localize('tags.track','The track element allows authors to specify explicit external timed text tracks for media elements. It does not represent anything on its own.'),
['default:v','kind:tk','label','src','srclang']),
map:newHTMLTagSpecification(
nls.localize('tags.map','The map element, in conjunction with an img element and any area element descendants, defines an image map. The element represents its children.'),
['name']),
area:newHTMLTagSpecification(
nls.localize('tags.area','The area element represents either a hyperlink with some text and a corresponding area on an image map, or a dead area on an image map.'),
nls.localize('tags.table','The table element represents data with more than one dimension, in the form of a table.'),
['sortable:v','border']),
caption:newHTMLTagSpecification(
nls.localize('tags.caption','The caption element represents the title of the table that is its parent, if it has a parent and that is a table element.')),
colgroup:newHTMLTagSpecification(
nls.localize('tags.colgroup','The colgroup element represents a group of one or more columns in the table that is its parent, if it has a parent and that is a table element.'),
['span']),
col:newHTMLTagSpecification(
nls.localize('tags.col','If a col element has a parent and that is a colgroup element that itself has a parent that is a table element, then the col element represents one or more columns in the column group represented by that colgroup.'),
['span']),
tbody:newHTMLTagSpecification(
nls.localize('tags.tbody','The tbody element represents a block of rows that consist of a body of data for the parent table element, if the tbody element has a parent and it is a table.')),
thead:newHTMLTagSpecification(
nls.localize('tags.thead','The thead element represents the block of rows that consist of the column labels (headers) for the parent table element, if the thead element has a parent and it is a table.')),
tfoot:newHTMLTagSpecification(
nls.localize('tags.tfoot','The tfoot element represents the block of rows that consist of the column summaries (footers) for the parent table element, if the tfoot element has a parent and it is a table.')),
tr:newHTMLTagSpecification(
nls.localize('tags.tr','The tr element represents a row of cells in a table.')),
td:newHTMLTagSpecification(
nls.localize('tags.td','The td element represents a data cell in a table.'),
['colspan','rowspan','headers']),
th:newHTMLTagSpecification(
nls.localize('tags.th','The th element represents a header cell in a table.'),
nls.localize('tags.form','The form element represents a collection of form-associated elements, some of which can represent editable values that can be submitted to a server for processing.'),
nls.localize('tags.label','The label element represents a caption in a user interface. The caption can be associated with a specific form control, known as the label element\'s labeled control, either using the for attribute, or by putting the form control inside the label element itself.'),
['form','for']),
input:newHTMLTagSpecification(
nls.localize('tags.input','The input element represents a typed data field, usually with a form control to allow the user to edit the data.'),
nls.localize('tags.datalist','The datalist element represents a set of option elements that represent predefined options for other controls. In the rendering, the datalist element represents nothing and it, along with its children, should be hidden.')),
optgroup:newHTMLTagSpecification(
nls.localize('tags.optgroup','The optgroup element represents a group of option elements with a common label.'),
['disabled:v','label']),
option:newHTMLTagSpecification(
nls.localize('tags.option','The option element represents an option in a select element or as part of a list of suggestions in a datalist element.'),
['disabled:v','label','selected:v','value']),
textarea:newHTMLTagSpecification(
nls.localize('tags.textarea','The textarea element represents a multiline plain text edit control for the element\'s raw value. The contents of the control represent the control\'s default value.'),
nls.localize('tags.output','The output element represents the result of a calculation performed by the application, or the result of a user action.'),
['for','form','name']),
progress:newHTMLTagSpecification(
nls.localize('tags.progress','The progress element represents the completion progress of a task. The progress is either indeterminate, indicating that progress is being made but that it is not clear how much more work remains to be done before the task is complete (e.g. because the task is waiting for a remote host to respond), or the progress is a number in the range zero to a maximum, giving the fraction of work that has so far been completed.'),
['value','max']),
meter:newHTMLTagSpecification(
nls.localize('tags.meter','The meter element represents a scalar measurement within a known range, or a fractional value; for example disk usage, the relevance of a query result, or the fraction of a voting population to have selected a particular candidate.'),
['value','min','max','low','high','optimum']),
fieldset:newHTMLTagSpecification(
nls.localize('tags.fieldset','The fieldset element represents a set of form controls optionally grouped under a common name.'),
['disabled:v','form','name']),
legend:newHTMLTagSpecification(
nls.localize('tags.legend','The legend element represents a caption for the rest of the contents of the legend element\'s parent fieldset element, if any.')),
// Interactive elements
details:newHTMLTagSpecification(
nls.localize('tags.details','The details element represents a disclosure widget from which the user can obtain additional information or controls.'),
['open:v']),
summary:newHTMLTagSpecification(
nls.localize('tags.summary','The summary element represents a summary, caption, or legend for the rest of the contents of the summary element\'s parent details element, if any.')),
// <menu> and <menuitem> are not yet supported by 2+ browsers
//menu: new HTMLTagSpecification(
// nls.localize('tags.menu', 'The menu element represents a list of commands.'),
// ['type:mt', 'label']),
//menuitem: new HTMLTagSpecification(
// nls.localize('tags.menuitem', 'The menuitem element represents a command that the user can invoke from a popup menu (either a context menu or the menu of a menu button).')),
dialog:newHTMLTagSpecification(
nls.localize('tags.dialog','The dialog element represents a part of an application that a user interacts with to perform a task, for example a dialog box, inspector, or window.')),
// Scripting
script:newHTMLTagSpecification(
nls.localize('tags.script','The script element allows authors to include dynamic script and data blocks in their documents. The element does not represent content for the user.'),
nls.localize('tags.noscript','The noscript element represents nothing if scripting is enabled, and represents its children if scripting is disabled. It is used to present different markup to user agents that support scripting and those that don\'t support scripting, by affecting how the document is parsed.')),
template:newHTMLTagSpecification(
nls.localize('tags.template','The template element is used to declare fragments of HTML that can be cloned and inserted in the document by script.')),
canvas:newHTMLTagSpecification(
nls.localize('tags.canvas','The canvas element provides scripts with a resolution-dependent bitmap canvas, which can be used for rendering graphs, game graphics, art, or other visual images on the fly.'),
['width','height'])
};
// Ionic tag information sourced from Ionic main website (https://github.com/driftyco/ionic-site)
exportconstIONIC_TAGS:ITagSet={
'ion-checkbox':newHTMLTagSpecification(nls.localize('tags.ion.checkbox','The checkbox is no different than the HTML checkbox input, except it\'s styled differently. The checkbox behaves like any AngularJS checkbox.'),
'ion-content':newHTMLTagSpecification(nls.localize('tags.ion.content','The ionContent directive provides an easy to use content area that can be configured to use Ionic\'s custom Scroll View, or the built-in overflow scrolling of the browser.'),
'ion-delete-button':newHTMLTagSpecification(nls.localize('tags.ion.deletebutton','Child of ionItem'),
[]),
'ion-footer-bar':newHTMLTagSpecification(nls.localize('tags.ion.footerbar','Adds a fixed footer bar below some content. Can also be a subfooter (higher up) if the "bar-subfooter" class is applied.'),
['align-title:align','keyboard-attach:v']),
'ion-header-bar':newHTMLTagSpecification(nls.localize('tags.ion.headerbar','Adds a fixed header bar above some content. Can also be a subheader (lower down) if the "bar-subheader" class is applied.'),
['align-title:align','no-tap-scroll:b']),
'ion-infinite-scroll':newHTMLTagSpecification(nls.localize('tags.ion.infinitescroll','Child of ionContent or ionScroll. The ionInfiniteScroll directive allows you to call a function whenever the user gets to the bottom of the page or near the bottom of the page.'),
'ion-input':newHTMLTagSpecification(nls.localize('tags.ion.input','ionInput is meant for text type inputs only. Ionic uses an actual <input type="text"> HTML element within the component, with Ionic wrapping to better handle the user experience and interactivity.'),
['type:inputtype','clearInput:v']),
'ion-item':newHTMLTagSpecification(nls.localize('tags.ion.item','Child of ionList.'),
[]),
'ion-list':newHTMLTagSpecification(nls.localize('tags.ion.list','The List is a widely used interface element in almost any mobile app, and can include content ranging from basic text all the way to buttons, toggles, icons, and thumbnails.'),
'ion-modal-view':newHTMLTagSpecification(nls.localize('tags.ion.modalview','The Modal is a content pane that can go over the user\'s main view temporarily. Usually used for making a choice or editing an item.'),
[]),
'ion-nav-back-button':newHTMLTagSpecification(nls.localize('tags.ion.navbackbutton','Child of ionNavBar. Creates a back button inside an ionNavBar. The back button will appear when the user is able to go back in the current navigation stack.'),
[]),
'ion-nav-bar':newHTMLTagSpecification(nls.localize('tags.ion.navbar','If you have an ionNavView directive, you can also create an <ion-nav-bar>, which will create a topbar that updates as the application state changes.'),
'ion-nav-buttons':newHTMLTagSpecification(nls.localize('tags.ion.navbuttons','Child of ionNavView. Use ionNavButtons to set the buttons on your ionNavBar from within an ionView.'),
['side:navsides']),
'ion-nav-title':newHTMLTagSpecification(nls.localize('tags.ion.navtitle','Child of ionNavView. The ionNavTitle directive replaces an ionNavBar title text with custom HTML from within an ionView template.'),
[]),
'ion-nav-view':newHTMLTagSpecification(nls.localize('tags.ion.navview','The ionNavView directive is used to render templates in your application. Each template is part of a state. States are usually mapped to a url, and are defined programatically using angular-ui-router.'),
['name']),
'ion-option-button':newHTMLTagSpecification(nls.localize('tags.ion.optionbutton','Child of ionItem. Creates an option button inside a list item, that is visible when the item is swiped to the left by the user.'),
[]),
'ion-pane':newHTMLTagSpecification(nls.localize('tags.ion.pane','A simple container that fits content, with no side effects. Adds the "pane" class to the element.'),
[]),
'ion-popover-view':newHTMLTagSpecification(nls.localize('tags.ion.popoverview','The Popover is a view that floats above an app\'s content. Popovers provide an easy way to present or gather information from the user.'),
[]),
'ion-radio':newHTMLTagSpecification(nls.localize('tags.ion.radio','The radio ionRirective is no different than the HTML radio input, except it\'s styled differently. The ionRadio behaves like AngularJS radio input.'),
'ion-refresher':newHTMLTagSpecification(nls.localize('tags.ion.refresher','Child of ionContent or ionScroll. Allows you to add pull-to-refresh to a scrollView. Place it as the first child of your ionContent or ionScroll element.'),
'ion-side-menu':newHTMLTagSpecification(nls.localize('tags.ion.sidemenu','Child of ionSideMenus. A container for a side menu, sibling to an ionSideMenuContent directive.'),
'ion-side-menu-content':newHTMLTagSpecification(nls.localize('tags.ion.sidemenucontent','Child of ionSideMenus. A container for the main visible content, sibling to one or more ionSideMenu directives.'),
['drag-content:b','edge-drag-threshold']),
'ion-side-menus':newHTMLTagSpecification(nls.localize('tags.ion.sidemenus','A container element for side menu(s) and the main content. Allows the left and/or right side menu to be toggled by dragging the main content area side to side.'),
'ion-slide':newHTMLTagSpecification(nls.localize('tags.ion.slide','Child of ionSlideBox. Displays a slide inside of a slidebox.'),
[]),
'ion-slide-box':newHTMLTagSpecification(nls.localize('tags.ion.slidebox','The Slide Box is a multi-page container where each page can be swiped or dragged between.'),
'ion-spinner':newHTMLTagSpecification(nls.localize('tags.ion.spinner','The ionSpinner directive provides a variety of animated spinners.'),
['icon']),
'ion-tab':newHTMLTagSpecification(nls.localize('tags.ion.tab','Child of ionTabs. Contains a tab\'s content. The content only exists while the given tab is selected.'),
'ion-tabs':newHTMLTagSpecification(nls.localize('tags.ion.tabs','Powers a multi-tabbed interface with a tab bar and a set of "pages" that can be tabbed through.'),
['delegate-handle']),
'ion-title':newHTMLTagSpecification(nls.localize('tags.ion.title','ion-title is a component that sets the title of the ionNavbar'),
[]),
'ion-toggle':newHTMLTagSpecification(nls.localize('tags.ion.toggle','A toggle is an animated switch which binds a given model to a boolean. Allows dragging of the switch\'s nub. The toggle behaves like any AngularJS checkbox otherwise.'),
'ion-view ':newHTMLTagSpecification(nls.localize('tags.ion.view','Child of ionNavView. A container for view content and any navigational and header bar information.'),
* maximum amount of characters per line (0 = disable)
* default 250
*/
wrap_line_length?:number;
/**
* put braces on the same line as control statements (default), or put braces on own line (Allman / ANSI style), or just put end braces on own line, or attempt to keep them where they are.
* "collapse" | "expand" | "end-expand" | "none"
* default "collapse"
*/
brace_style?:string;
/**
* list of tags, that shouldn't be reformatted
* defaults to inline tags
*/
unformatted?:string[];
/**
* "keep"|"separate"|"normal"
* default normal
*/
indent_scripts?:string;
/**
* whether existing line breaks before elements should be preserved. Only works before elements, not inside tags or for text.
* default true
*/
preserve_newlines?:boolean;
/**
* maximum number of line breaks to be preserved in one chunk
* default unlimited
*/
max_preserve_newlines?:number;
/**
* format and indent {{#foo}} and {{/foo}}
* default false
*/
indent_handlebars?:boolean;
/**
* end with a newline
* default false
*/
end_with_newline?:boolean;
/**
* List of tags that should have an extra newline before them.
put braces on the same line as control statements (default), or put braces on own line (Allman / ANSI style), or just put end braces on own line, or attempt to keep them where they are.
unformatted (defaults to inline tags) - list of tags, that shouldn't be reformatted
/* Don't change tab indention for unformatted blocks. If using code for html editing, this will greatly affect <pre> tags if they are specified in the 'unformatted array'
for (var i=0; i<this.indent_level; i++) {
content += this.indent_string;
}
space = false; //...and make sure other indentation is erased
Copyright (c) 2007-2013 Einar Lielmanis and contributors.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.