diff --git a/css/style.css b/css/style.css index 59b84b8..85c5826 100644 --- a/css/style.css +++ b/css/style.css @@ -1,3 +1,9 @@ +/* highlight messages */ +.highlight { + color: yellow; + font-weight: bold; +} + /* style options, foreground */ .cof-separator { color: #68b5d4; diff --git a/js/models.js b/js/models.js index 3f88c31..5aa8f17 100644 --- a/js/models.js +++ b/js/models.js @@ -187,6 +187,12 @@ models.service('models', ['$rootScope', '$filter', function($rootScope, $filter) var content = weeChat.Protocol.rawText2Rich(message['message']); addClasses(content); + if (highlight) { + prefix.forEach(function(textEl) { + textEl.classes.push('highlight'); + }); + } + var rtext = ""; if(content[0] != undefined) { rtext = content[0]['text'];