Class orion.highlight.SyntaxHighlighter
				
				
			
				
				
				
					
Defined in:  </shared/eclipse/e4/orion/I201404012230/bundles/org.eclipse.orion.client.ui/web/orion/highlight.js>.
				
			
| Constructor Attributes | Constructor Name and Description | 
|---|---|
| 
							 
								orion.highlight.SyntaxHighlighter(serviceRegistry, contentTypeService)
							 
							Requires service orion.core.ContentTypeRegistry  | 
					
| Method Attributes | Method Name and Description | 
|---|---|
| 
								 setup(contentType, textView, annotationModel, fileName, allowAsync)
								 
								
							 | 
						
					Class Detail
				
				
				
						orion.highlight.SyntaxHighlighter(serviceRegistry, contentTypeService)
				
				
				Requires service orion.core.ContentTypeRegistry
- Parameters:
 - {orion.serviceregistry.ServiceRegistry} serviceRegistry
 - Registry to look up highlight providers from.
 - {orion.core.ContentType} contentTypeService Optional, Default: null
 - A stand alone content type service that is not registered in theservice registry.
 
					Method Detail
				
				
					 
					
					
					
					getStyler()
					
					
					
					
					{orion.Deferred}
					setup(contentType, textView, annotationModel, fileName, allowAsync)
					
					
					- Parameters:
 - {orion.core.ContentType} contentType
 - {orion.editor.TextView} textView
 - {orion.editor.AnnotationModel} annotationModel
 - {String} fileName Optional
 - Deprecated. For backwards compatibility only, service-contributed highlighters will be checked against the file extension instead of contentType.
 - {Boolean} allowAsync Optional, Default: true
 - If true, plugin-contributed asynchronous highlighters (i.e. 
type == "highlighter"will be consulted. If false, only rule-based highlighters will be consulted. 
- Returns:
 - {orion.Deferred} A promise that is resolved when this highlighter has been set up.