首页 > 其他 > 详细

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

时间:2014-04-06 16:59:11      阅读:535      评论:0      收藏:0      [点我收藏+]

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

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

效果预览

项目README.md

bubuko.com,布布扣

项目wiki页面

bubuko.com,布布扣

代码提交时

bubuko.com,布布扣

可用表情清单

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

bubuko.com,布布扣

使用方法

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

:blush: 会显示成bubuko.com,布布扣

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

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

支持的网站

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

A one pager listing the different emoji emoticons supported on CampfireGitHubBasecamp NextTeambox,Plug.djFlowdockSprint.lyGitLabKandanandbangTrelloHallQiitaTrelloZendeskRuby-ChinaGrove,IdobataNodeBB ForumsSlackStreamupQuipOrganisedMinds, and Hackpad.

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

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

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

Reference

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

https://github.com/github/gemoji

代码提交的时候可以插入表情了-GitHub表情的使用,布布扣,bubuko.com

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

原文:http://www.cnblogs.com/Wayou/p/use_emoji_in_github.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!