Markup Language
Identifier:
org.eclipse.mylyn.wikitext.core.markupLanguage
Since:
1.0
Description:
A means of adding support for parsing lightweight markup languages. A MarkupLanguage defines the rules and semantics used when parsing lightweight markup (wikitext). This extension point should be used to add new markup parsers to the WikiText framework.
Configuration Markup:
<!ELEMENT extension (language+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED
>
<!ELEMENT language EMPTY>
<!ATTLIST language
class CDATA #REQUIRED
name CDATA #REQUIRED
fileExtensions CDATA #IMPLIED
extends CDATA #IMPLIED
>
A language declaration, indicating a MarkupLanguage class and identifiable name.
- class - The fully qualified name of the class that implements the markup language. Must extend org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage
- name - The name of the markup language. This name should be recognizable to the user. The name is not translatable as it is a proper name. For example, 'Textile' or 'Markdown'.
- fileExtensions - A comma-delimited list of file extensions for which this should be the default markup language.
Note that a preceding dot is not required on the extension. For example: "textile, markup".
Plugins should also use the org.eclipse.core.contenttype.contentTypes extension point to create a new content type that extends org.eclipse.mylyn.wikitext and associates the new content type with the same file extensions. This will ensure that the markup editor is correctly associated with the right file extensions.
- extends - Optionally specify the name of the markup language that is extended by this language. Used to provide type hierarchies in language declarations, so that things like cheat sheets and content assist can be inherited.
Examples:
<extension point="org.eclipse.mylyn.wikitext.core.markupLanguage">
<language class="org.eclipse.mylyn.wikitext.textile.core.TextileLanguage"
name="Textile" fileExtensions="textile">
</language>
</extension>
Generally markup language declarations are also followed by the following:
<extension
point="org.eclipse.core.contenttype.contentTypes">
<content-type
base-type="org.eclipse.mylyn.wikitext"
file-extensions="textile"
id="org.eclipse.mylyn.wikitext.textile"
name="Textile markup"
priority="normal">
</content-type>
</extension>
<extension
point="org.eclipse.team.core.fileTypes">
<fileTypes
extension="textile"
type="text">
</fileTypes>
</extension>
Copyright (c) 2007, 2009 David Green and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html