also logic to add attributes for properties
parent
ce004f9c59
commit
f11bdc1b44
|
@ -34,7 +34,6 @@ var linestylefilter = {};
|
|||
var _ = require('./underscore');
|
||||
var AttributeManager = require('./AttributeManager');
|
||||
|
||||
|
||||
linestylefilter.ATTRIB_CLASSES = {
|
||||
'bold': 'tag:b',
|
||||
'italic': 'tag:i',
|
||||
|
@ -59,6 +58,13 @@ linestylefilter.getAuthorClassName = function(author)
|
|||
linestylefilter.getLineStyleFilter = function(lineLength, aline, textAndClassFunc, apool)
|
||||
{
|
||||
|
||||
// Plugin Hook to add more Attrib Classes
|
||||
hooks.aCallAll('aceAttribClasses', linestylefilter.ATTRIB_CLASSES, function(err, ATTRIB_CLASSES){
|
||||
if(ATTRIB_CLASSES){
|
||||
linestylefilter.ATTRIB_CLASSES = ATTRIB_CLASSES[0];
|
||||
}
|
||||
});
|
||||
|
||||
if (lineLength == 0) return textAndClassFunc;
|
||||
|
||||
var nextAfterAuthorColors = textAndClassFunc;
|
||||
|
|
Loading…
Reference in New Issue