I recently came across a webapp called StackEdit which lets you create HTML documents while typing in (almost) plain text, using the Markdown syntax (that is also implemented here on StackExchange) to convert text to HTML. The introductory document has certain icon codes like <i class='icon-upload'></i>
which generates (I assume) HTML icons.
Does anyone know where I can find a list(exhaustive would be very good) of icon codes for various purposes? Apparently, going by the credits in the 'About' section, it implements this using something called Font Awesome but the codes listed there don't seem to work in StackEdit. Maybe it implements some code but has it's own list of icon codes. Any help?
https://stackedit.io/res/libs/fontello/demo.html
(I'm the developer of StackEdit)
Here's a non-authoritative list I created by scraping the CSS. I ran this script in the JavaScript console while StackEdit was open to get the list:
var classes = {};
[].forEach.call(document.styleSheets, function(ss){
[].forEach.call(ss.cssRules, function(r) {
if (r.selectorText) {
r.selectorText.split(/,\s*/).forEach(function(sel){
if (/^\.(icon-[a-z\d-]+)/i.test(sel)) {
classes[RegExp.$1] = null;
}
});
}
});
});
var classList = Object.getOwnPropertyNames(classes);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With