I need list of all class name of Font-Awesome

前端 未结 18 3081
傲寒
傲寒 2020-12-12 13:44

I build app that will present a lot of icons so I need list of all Font-Awesome class name like [\"fa-dropbox\",\"fa-rocket\",\"fa-globe\", ....] so on is ther

18条回答
  •  难免孤独
    2020-12-12 14:42

    For future updates, copy paste the complete list from the cheatsheet (http://fortawesome.github.io/Font-Awesome/cheatsheet/) into an editor (notepad++ in my case). And do the following regular expression find & replace actions :

    remove the special character at the begin and the characters between block quotes []

    find: ^.*(fa-[^\s]*).*
    replace: \1
    

    and if you want to wrap everything in an array:

    find: ^.*(fa-[^\s]*).*
    replace: "\1",
    

    you only need to start the string with "[" and end it with "]" to make the array complete

提交回复
热议问题