-
-
Save levicole/4f6e0f854f0b91f6b754 to your computer and use it in GitHub Desktop.
Open Textual Preferences -> Select the Styles tab -> click the "Brows Style Files". Add this script to "scripts.js". Also, add this script to the style's directory https://raw.github.com/iamcal/js-emoji/master/emoji.js.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Textual.includeScriptResourceFile("jquery-2.0.3.min.js"); | |
Textual.includeScriptResourceFile("emoji.js"); | |
Textual.newMessagePostedToView = function(lineNumber) { | |
var selector = "#line-" + lineNumber + " .message" | |
var $message = $(selector); | |
var message = $message.html() | |
var output = emoji.replace_colons(message); | |
$message.html(output) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment