Class orion.highlight.SyntaxHighlighter
Defined in: </shared/eclipse/e4/orion/I201202282230/plugins/org.eclipse.orion.client.core/web/orion/highlight.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
orion.highlight.SyntaxHighlighter(serviceRegistry)
Requires service orion.file.ContentTypeService |
Method Attributes | Method Name and Description |
---|---|
setup(contentType, textView, annotationModel, fileName)
|
Class Detail
orion.highlight.SyntaxHighlighter(serviceRegistry)
Requires service orion.file.ContentTypeService
- Parameters:
- {orion.serviceregistry.ServiceRegistry} serviceRegistry
- Registry to look up highlight providers from.
Method Detail
getStyler()
{dojo.Deferred}
setup(contentType, textView, annotationModel, fileName)
- Parameters:
- {orion.file.ContentType} contentType
- {orion.textview.TextView} textView
- {orion.textview.AnnotationModel} annotationModel
- {String} fileName Optional
- Deprecated. For backwards compatibility only, service-contributed highlighters will be checked against the file extension instead of contentType.
- Returns:
- {dojo.Deferred} A promise that is resolved when this highlighter has been set up.