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.



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