Enum Class AceCustomModeTokens

java.lang.Object
java.lang.Enum<AceCustomModeTokens>
de.f0rce.ace.enums.AceCustomModeTokens
All Implemented Interfaces:
Serializable, Comparable<AceCustomModeTokens>, Constable

public enum AceCustomModeTokens extends Enum<AceCustomModeTokens>
The following are the common tokens to AceTheme taken from the TextMate manual. Note that not all of these may have styling associated with them, depending on the AceTheme used.

Ace Documentation:
https://github.com/ajaxorg/ace/wiki/Creating-or-Extending-an-Edit-Mode#common-tokens
Author:
David "F0rce" Dodlek
  • Enum Constant Details

    • COMMENT

      public static final AceCustomModeTokens COMMENT
      for comments
    • COMMENT_LINE

      public static final AceCustomModeTokens COMMENT_LINE
      line comments, we specialize further so that the type of comment start character(s) can be extracted from the scope.
    • COMMENT_LINE_DOUBLE_SLASH

      public static final AceCustomModeTokens COMMENT_LINE_DOUBLE_SLASH
      // comment
    • COMMENT_LINE_DOUBLE_DASH

      public static final AceCustomModeTokens COMMENT_LINE_DOUBLE_DASH
      -- comment
    • COMMENT_LINE_NUMBER_SIGN

      public static final AceCustomModeTokens COMMENT_LINE_NUMBER_SIGN
      # comment
    • COMMENT_LINE_PERCENTAGE

      public static final AceCustomModeTokens COMMENT_LINE_PERCENTAGE
      % comment
    • COMMENT_LINE_CHARACTER

      public static final AceCustomModeTokens COMMENT_LINE_CHARACTER
      other types of line comments
    • COMMENT_BLOCK

      public static final AceCustomModeTokens COMMENT_BLOCK
      multi-line comments like /* ... */ and <!-- ... -->
    • COMMENT_BLOCK_DOCUMENTATION

      public static final AceCustomModeTokens COMMENT_BLOCK_DOCUMENTATION
      embedded documentation
    • CONSTANT

      public static final AceCustomModeTokens CONSTANT
      various forms of constants
    • CONSTANT_NUMERIC

      public static final AceCustomModeTokens CONSTANT_NUMERIC
      those which represent numbers, e.g. 42, 1.3f, 0x4AB1U
    • CONSTANT_CHARACTER

      public static final AceCustomModeTokens CONSTANT_CHARACTER
      those which represent characters, e.g. <, \e, \031
    • CONSTANT_CHARACTER_ESCAPE

      public static final AceCustomModeTokens CONSTANT_CHARACTER_ESCAPE
      escape sequences like \e
    • CONSTANT_LANGUAGE

      public static final AceCustomModeTokens CONSTANT_LANGUAGE
      constants (generally) provided by the language which are "special" like true, false, nil, YES, NO, etc.
    • CONSTANT_OTHER

      public static final AceCustomModeTokens CONSTANT_OTHER
      other constants, e.g. colors in CSS
    • ENTITY

      public static final AceCustomModeTokens ENTITY
      an entity refers to a larger part of the document, for example a chapter, class, function, or tag. We do not scope the entire entity as ENTITY.* (we use META.* for that). But we do use entity.* for the "placeholders" in the larger entity, e.g. if the entity is a chapter, we would use ENTITY_NAME_SECTION for the chapter title.
    • ENTITY_NAME

      public static final AceCustomModeTokens ENTITY_NAME
      we are naming the larger entity
    • ENTITY_NAME_FUNCTION

      public static final AceCustomModeTokens ENTITY_NAME_FUNCTION
      the name of a function
    • ENTITY_NAME_TYPE

      public static final AceCustomModeTokens ENTITY_NAME_TYPE
      the name of a type declaration or class
    • ENTITY_NAME_TAG

      public static final AceCustomModeTokens ENTITY_NAME_TAG
      a tag name
    • ENTITY_NAME_SECTION

      public static final AceCustomModeTokens ENTITY_NAME_SECTION
      the name is the name of a section/heading
    • ENTITY_OTHER

      public static final AceCustomModeTokens ENTITY_OTHER
      other entities
    • ENTITY_OTHER_INHERITED_CLASS

      public static final AceCustomModeTokens ENTITY_OTHER_INHERITED_CLASS
      the superclass/baseclass name
    • ENTITY_OTHER_ATTRIBUTE_NAME

      public static final AceCustomModeTokens ENTITY_OTHER_ATTRIBUTE_NAME
      the name of an attribute (mainly in tags)
    • INVALID

      public static final AceCustomModeTokens INVALID
      stuff which is "invalid"
    • INVALID_ILLEGAL

      public static final AceCustomModeTokens INVALID_ILLEGAL
      illegal, e.g. an ampersand or lower-than character in HTML (which is not part of an entity/tag)
    • INVALID_DEPRECATED

      public static final AceCustomModeTokens INVALID_DEPRECATED
      for deprecated stuff e.g. using an API function which is deprecated or using styling with strict HTML
    • KEYWORD

      public static final AceCustomModeTokens KEYWORD
      keywords (when these do not fall into the other groups)
    • KEYWORD_CONTROL

      public static final AceCustomModeTokens KEYWORD_CONTROL
      mainly related to flow control like continue, while, return , etc.
    • KEYWORD_OPERATOR

      public static final AceCustomModeTokens KEYWORD_OPERATOR
      operators can either be textual (e.g. or) or be characters
    • KEYWORD_OTHER

      public static final AceCustomModeTokens KEYWORD_OTHER
      other keywords
    • MARKUP

      public static final AceCustomModeTokens MARKUP
      this is for markup languages and generally applies to larger subsets of the text
    • MARKUP_UNDERLINE

      public static final AceCustomModeTokens MARKUP_UNDERLINE
      underlined text
    • MARKUP_BOLD

      public static final AceCustomModeTokens MARKUP_BOLD
      bold text (text which is strong and similar should preferably be derived from this name)
    • MARKUP_HEADING

      public static final AceCustomModeTokens MARKUP_HEADING
      a section header
    • MARKUP_ITALIC

      public static final AceCustomModeTokens MARKUP_ITALIC
      italic text (text which is emphasized and similar should preferably be derived from this name)
    • MARKUP_LIST

      public static final AceCustomModeTokens MARKUP_LIST
      list items
    • MARKUP_LIST_NUMBERED

      public static final AceCustomModeTokens MARKUP_LIST_NUMBERED
      numbered list items
    • MARKUP_LIST_UNNUMBERED

      public static final AceCustomModeTokens MARKUP_LIST_UNNUMBERED
      unnumbered list items
    • MARKUP_QUOTE

      public static final AceCustomModeTokens MARKUP_QUOTE
      quoted (sometimes block quoted) text
    • MARKUP_RAW

      public static final AceCustomModeTokens MARKUP_RAW
      text which is verbatim, e.g. code listings. Normally spell checking is disabled for MARKUP_RAW
    • MARKUP_OTHER

      public static final AceCustomModeTokens MARKUP_OTHER
      other markup constructs
    • META_TAG

      public static final AceCustomModeTokens META_TAG
    • STORAGE

      public static final AceCustomModeTokens STORAGE
      things relating to "storage"
    • STORAGE_TYPE

      public static final AceCustomModeTokens STORAGE_TYPE
      the type of something, class, function, int, var , etc.
    • STORAGE_MODIFIER

      public static final AceCustomModeTokens STORAGE_MODIFIER
      a storage modifier like static, final, abstract, etc.
    • STRING

      public static final AceCustomModeTokens STRING
      strings
    • STRING_QUOTED

      public static final AceCustomModeTokens STRING_QUOTED
      quoted strings
    • STRING_SINGLE

      public static final AceCustomModeTokens STRING_SINGLE
      single quoted strings: 'foo'
    • STRING_DOUBLE

      public static final AceCustomModeTokens STRING_DOUBLE
      double quoted strings: "foo"
    • STRING_TRIPLE

      public static final AceCustomModeTokens STRING_TRIPLE
      triple quoted strings: """Python"""
    • STRING_UNQUOTED

      public static final AceCustomModeTokens STRING_UNQUOTED
      for things like here-docs and here-strings
    • STRING_INTERPOLATED

      public static final AceCustomModeTokens STRING_INTERPOLATED
      strings which are "evaluated": `date`, $(pwd)
    • STRING_REGEXP

      public static final AceCustomModeTokens STRING_REGEXP
      regular expressions: /(\w+)/
    • STRING_OTHER

      public static final AceCustomModeTokens STRING_OTHER
      other types of quoting: $'shell', %s{...}
    • SUPPORT

      public static final AceCustomModeTokens SUPPORT
      things provided by a framework or library
    • SUPPORT_FUNCTION

      public static final AceCustomModeTokens SUPPORT_FUNCTION
      functions provided by the framework/library. For example NSLog in Objective-C
    • SUPPORT_CLASS

      public static final AceCustomModeTokens SUPPORT_CLASS
      when the framework/library provides classes
    • SUPPORT_TYPE

      public static final AceCustomModeTokens SUPPORT_TYPE
      types provided by the framework/library, this is probably only used for languages derived from C, which has typedef (and struct). Most other languages would introduce new types as classes
    • SUPPORT_CONSTANT

      public static final AceCustomModeTokens SUPPORT_CONSTANT
      constants (magic values) provided by the framework/library
    • SUPPORT_VARIABLE

      public static final AceCustomModeTokens SUPPORT_VARIABLE
      variables provided by the framework/library. For example NSApp in AppKit
    • SUPPORT_OTHER

      public static final AceCustomModeTokens SUPPORT_OTHER
      the above should be exhaustive, but for everything else
    • VARIABLE

      public static final AceCustomModeTokens VARIABLE
      variables. Not all languages allow easy identification (and thus markup) of these
    • VARIABLE_PARAMETER

      public static final AceCustomModeTokens VARIABLE_PARAMETER
      when the variable is declared as the parameter
    • VARIABLE_LANGUAGE

      public static final AceCustomModeTokens VARIABLE_LANGUAGE
      reserved language variables like this, super, self, etc
    • VARIABLE_OTHER

      public static final AceCustomModeTokens VARIABLE_OTHER
      other variables, like $some_variables
  • Method Details

    • values

      public static AceCustomModeTokens[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AceCustomModeTokens valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getToken

      public String getToken()
      Returns the String representation of a token.
      Returns:
      String
    • findByToken

      public static AceCustomModeTokens findByToken(String token)
      Find the enum by it's String representation.
      Parameters:
      token - String
      Returns:
      AceCustomModeTokens