also logic to add attributes for properties
parent
ce004f9c59
commit
f11bdc1b44
|
@ -34,7 +34,6 @@ var linestylefilter = {};
|
||||||
var _ = require('./underscore');
|
var _ = require('./underscore');
|
||||||
var AttributeManager = require('./AttributeManager');
|
var AttributeManager = require('./AttributeManager');
|
||||||
|
|
||||||
|
|
||||||
linestylefilter.ATTRIB_CLASSES = {
|
linestylefilter.ATTRIB_CLASSES = {
|
||||||
'bold': 'tag:b',
|
'bold': 'tag:b',
|
||||||
'italic': 'tag:i',
|
'italic': 'tag:i',
|
||||||
|
@ -59,6 +58,13 @@ linestylefilter.getAuthorClassName = function(author)
|
||||||
linestylefilter.getLineStyleFilter = function(lineLength, aline, textAndClassFunc, apool)
|
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;
|
if (lineLength == 0) return textAndClassFunc;
|
||||||
|
|
||||||
var nextAfterAuthorColors = textAndClassFunc;
|
var nextAfterAuthorColors = textAndClassFunc;
|
||||||
|
|
Loading…
Reference in New Issue