also logic to add attributes for properties

pull/2368/head
John McLear 2014-12-09 01:31:40 +00:00
parent ce004f9c59
commit f11bdc1b44
1 changed files with 7 additions and 1 deletions

View File

@ -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;