代码提交的时候可以插入表情了-GitHub表情的使用


本文转自:博客园
代码提交的时候可以插入表情了-GitHub表情的使用

作者:
刘哇勇

GitHub官方有个表情项目,旨在丰富文字信息。意味着你可以在提交代码的时候,在提交信息里面添加表情,同时也可以在项目的ReadMe.md文件里面使用表情。除此之外,当然还有项目在GitHub上的wiki页面,总之在GitHub的页面上,都可以使用。

GitHub官方表情项目地址:github / gemoji

效果预览

项目README.md

p1

项目wiki页面

p2

可用表情清单

可以访问这个页面查看所有支持的表情以及对应的代码

使用方法

使用方法为前后冒号包围表情代号的句法。

:blush:会显示成

所以你在提交代码的时候可以这样写提交信息:

    git commit –m 'commit some changes :blush:'

支持的网站

上面例出的表情不仅适用于GitHub,也适用于其他地方。下面引用原文表述:

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, Twemoji Awesome, Got Chosen, Flow, ReadMe.io, esa, DBook, Groups.io, TeamworkChat, Damn Bugs, Let’s Chat, Buildkite, ChatGrape, Dokuwiki, Usersnap, Discord, Status Hero, Morfy, Bitbucket, Gitter, Yellow, YouTube, Habitica and Mattermost

上面例出的网站均支持这种代码式的表情插入。

同样,你可以让自己的项目支持这种表情,具体参见:

Ruby – https://github.com/github/gemoji, https://github.com/jsw0528/rails_emoji
Javascript – https://github.com/kof/emoticons
Javascript – https://github.com/hassankhan/emojify.js
Alt. JS version (+node.js) - https://github.com/henrikjoreteg/emoji-images.js
Objective-C – https://github.com/diy/nsstringemojize
Java - https://github.com/pepibumur/emojize

Reference

  1. https://github.com/arvida/emoji-cheat-sheet.com

  2. https://github.com/github/gemoji

这里是该博文的链接:
http://www.cnblogs.com/Wayou/p/use_emoji_in_github.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值