class_editorsyntaxhighlighter.rst 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the EditorSyntaxHighlighter.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_EditorSyntaxHighlighter:
  6. EditorSyntaxHighlighter
  7. =======================
  8. **Inherits:** :ref:`SyntaxHighlighter<class_SyntaxHighlighter>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. Base Syntax highlighter resource for the :ref:`ScriptEditor<class_ScriptEditor>`.
  10. Description
  11. -----------
  12. Base syntax highlighter resource all editor syntax highlighters extend from, it is used in the :ref:`ScriptEditor<class_ScriptEditor>`.
  13. Add a syntax highlighter to an individual script by calling :ref:`ScriptEditorBase.add_syntax_highlighter<class_ScriptEditorBase_method_add_syntax_highlighter>`. To apply to all scripts on open, call :ref:`ScriptEditor.register_syntax_highlighter<class_ScriptEditor_method_register_syntax_highlighter>`
  14. Methods
  15. -------
  16. +-----------------------------+------------------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`String<class_String>` | :ref:`_get_name<class_EditorSyntaxHighlighter_method__get_name>` **(** **)** |virtual| |const| |
  18. +-----------------------------+------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`Array<class_Array>` | :ref:`_get_supported_languages<class_EditorSyntaxHighlighter_method__get_supported_languages>` **(** **)** |virtual| |const| |
  20. +-----------------------------+------------------------------------------------------------------------------------------------------------------------------+
  21. Method Descriptions
  22. -------------------
  23. .. _class_EditorSyntaxHighlighter_method__get_name:
  24. - :ref:`String<class_String>` **_get_name** **(** **)** |virtual| |const|
  25. Virtual method which can be overridden to return the syntax highlighter name.
  26. ----
  27. .. _class_EditorSyntaxHighlighter_method__get_supported_languages:
  28. - :ref:`Array<class_Array>` **_get_supported_languages** **(** **)** |virtual| |const|
  29. Virtual method which can be overridden to return the supported language names.
  30. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  31. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  32. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  33. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  34. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  35. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`