The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Class Index | File Index

Classes


Class orion.editor.TextMateStyler


Extends orion.editor.AbstractStyler.
A styler that knows how to apply a subset of the TextMate grammar format to style a line.

Styling from a grammar:

Each scope name given in the grammar is converted to an array of CSS class names. For example a region of text with scope keyword.control.php will be assigned the CSS classes
keyword, keyword-control, keyword-control-php

A CSS file can give rules matching any of these class names to provide generic or more specific styling. For example,

.keyword { font-color: blue; }

colors all keywords blue, while

.keyword-control-php { font-weight: bold; }

bolds only PHP control keywords.

This is useful when using grammars that adhere to TextMate's scope name conventions, as a single CSS rule can provide consistent styling to similar constructs across different languages.

Top-level grammar constructs:

Regular expression constructs:

Scope-assignment constructs:

Other features:


Defined in: </shared/eclipse/e4/orion/I201404012230/bundles/org.eclipse.orion.client.editor/web/orion/editor/textMateStyler.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
orion.editor.TextMateStyler(textView, grammar, externalGrammars)
Creates a new TextMateStyler.
Method Summary
Method Attributes Method Name and Description
 
 
initialize(textView)
 
 
 
Class Detail
orion.editor.TextMateStyler(textView, grammar, externalGrammars)
Creates a new TextMateStyler.
Parameters:
{orion.editor.TextView} textView
The TextView to provide styling for.
{Object} grammar
The TextMate grammar to use for styling the TextView, as a JavaScript object. You can produce this object by running a PList-to-JavaScript conversion tool on a TextMate .tmLanguage file.
{Object[]} externalGrammars Optional
Additional grammar objects that will be used to resolve named rule references.
Method Detail
destroy()

initialize(textView)
Parameters:
textView

onDestroy(e)
Parameters:
{eclipse.DestroyEvent} e

onLineStyle(e)
Parameters:
{eclipse.LineStyleEvent} e

onModelChanged(e)
Parameters:
{eclipse.ModelChangedEvent} e

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Apr 01 2014 22:58:23 GMT-0400 (EDT)

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.