# Emoji codes support and autocomplete

**URL:** <https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370>\
**Category:** Site Feedback\
**Created:** [January 22, 2018, 12:05pm UTC](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370 "2018-01-22T12:05:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![akashivskyy](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/akashivskyy/32/1136_2.png) [@akashivskyy](https://forums.swift.org/u/akashivskyy)\
**Post date:** [January 22, 2018, 12:05pm UTC](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370/1 "2018-01-22T12:05:31Z")

</div>

Emojis are very important part of any discussion and forum, nowadays. I'm :dissapointed: to see that [Emoji codes](https://emoji.codes) autocomplete is not supported in these Swift Forums.

[Discourse supports Emoji codes autocomplete](https://blog.discourse.org/2015/12/emoji-and-discourse/) by default. Was the removal of this feature a deliberate decision? If yes, is it temporary or there are no plans to add the support back in the future?

Keeping my :fingers\_crossed: to have them back.

---

<div class="post-metadata">

**Author:** ![xwu](https://avatars.discourse-cdn.com/v4/letter/x/b487fb/32.png) [@xwu](https://forums.swift.org/u/xwu)\
**Post date:** [January 22, 2018, 11:54pm UTC](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370/2 "2018-01-22T23:54:35Z")

</div>

It was recently disabled because Swift often uses spellings such as `foo(bar:)`. Without code voice, these get turned into happy faces, greatly impeding discussion.

You can still insert emoji via your own device's input methods.

---

<div class="post-metadata">

**Author:** ![akashivskyy](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/akashivskyy/32/1136_2.png) [@akashivskyy](https://forums.swift.org/u/akashivskyy)\
**Post date:** [January 22, 2018, 11:56pm UTC](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370/3 "2018-01-22T23:56:41Z")

</div>

Doesn’t wrapping code in backticks make it **not** render an emoji?

---

<div class="post-metadata">

**Author:** ![xwu](https://avatars.discourse-cdn.com/v4/letter/x/b487fb/32.png) [@xwu](https://forums.swift.org/u/xwu)\
**Post date:** [January 22, 2018, 11:59pm UTC](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370/4 "2018-01-22T23:59:31Z")

</div>

> [@akashivskyy](#):
>
> Doesn’t wrapping code in backticks make it not render an emoji?

Yes, that's "code voice." Not all use it consistently or want to, and quoting a post with code voice in Discourse removes the backticks. So it was requested to disable automatic emoji features.

---

<div class="post-metadata">

**Author:** ![saagarjha](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@saagarjha](https://forums.swift.org/u/saagarjha)\
**Post date:** [January 23, 2018, 12:07am UTC](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370/5 "2018-01-23T00:07:04Z")

</div>

> [@xwu](#):
>
> quoting a post with code voice in Discourse removes the backticks

This sounds like a bug with Discourse, or at least unintended behavior.

---

<div class="post-metadata">

**Author:** ![akashivskyy](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/akashivskyy/32/1136_2.png) [@akashivskyy](https://forums.swift.org/u/akashivskyy)\
**Post date:** [January 23, 2018, 1:37am UTC](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370/6 "2018-01-23T01:37:10Z")

</div>

> [@xwu](#):
>
> Not all use it consistently or want to

That's not a solid argument for me. Take a look at GitHub. It's a _much_ bigger site with _much_ more code-oriented discussions. And yet it manages to both enforce code voice and support emoji codes.

> [@xwu](#):
>
> quoting a post with code voice in Discourse removes the backticks

> [@saagarjha](#):
>
> This sounds like a bug with Discourse, or at least unintended behavior.

Although I agree that it's unintended behavior, _this_ is a solid argument against supporting emoji codes for me.

---

<div class="post-metadata">

**Author:** ![Jon\_Shier](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jon_shier/32/921_2.png) [@Jon\_Shier](https://forums.swift.org/u/Jon_Shier)\
**Post date:** [January 23, 2018, 1:55am UTC](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370/7 "2018-01-23T01:55:38Z")

</div>

I agree. Emoji were disabled after single request based off a post not using proper code styling. They should be turned back on.

---

<div class="post-metadata">

**Author:** ![xwu](https://avatars.discourse-cdn.com/v4/letter/x/b487fb/32.png) [@xwu](https://forums.swift.org/u/xwu)\
**Post date:** [January 23, 2018, 2:42am UTC](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370/8 "2018-01-23T02:42:05Z")

</div>

> [@akashivskyy](#):
>
> That’s not a solid argument for me. Take a look at GitHub. It’s a much bigger site with much more code-oriented discussions. And yet it manages to both enforce code voice and support emoji codes.

Github does not turn "foo(bar:)" into "foo(bar😀"

---

<div class="post-metadata">

**Author:** ![Jon\_Shier](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jon_shier/32/921_2.png) [@Jon\_Shier](https://forums.swift.org/u/Jon_Shier)\
**Post date:** [January 23, 2018, 3:17am UTC](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370/9 "2018-01-23T03:17:23Z")

</div>

Neither does Discourse, if the code is properly styled, as it should be for readability anyway.

---

<div class="post-metadata">

**Author:** ![xwu](https://avatars.discourse-cdn.com/v4/letter/x/b487fb/32.png) [@xwu](https://forums.swift.org/u/xwu)\
**Post date:** [January 23, 2018, 4:23am UTC](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370/10 "2018-01-23T04:23:19Z")

</div>

> [@Jon\_Shier](#):
>
> Neither does Discourse, if the code is properly styled, as it should be for readability anyway.

That much has been clearly stated above. You know full well that the point being made is that GitHub does not turn plain text "foo(bar:)" into a string with emoji, but Discourse does. This is not conducive to a productive discussion.

A question was asked, and I answered it. For clarity: the reason that emoji autocomplete is disabled here is because it's tied to autotranslating plain text to emoji; it has been pointed out that the latter behavior gets in the way of discussion, and it is not a feature found on GitHub, where emoji autocomplete is still available.

---

<div class="post-metadata">

**Author:** ![sam.saffron](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/sam.saffron/32/1161_2.png) [@sam.saffron](https://forums.swift.org/u/sam.saffron)\
**Post date:** [January 23, 2018, 10:38am UTC](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370/11 "2018-01-23T10:38:00Z")

</div>

We use CommonMark here and any code wrapped in ` ` is treated as preformatted text including

> code that is in `quotes :)` \<= I am code

I guess the feature request is to disable `shortcode` emojis so we don't turn `:)` into a smiley face even if its not preformatted. Totally open to adding this as a site setting, just have the [@forum\_admins](https://forums.swift.org/groups/forum_admins) raise it with us.

---

<div class="post-metadata">

**Author:** ![Nicole\_Jacque](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/nicole_jacque/32/245_2.png) [@Nicole\_Jacque](https://forums.swift.org/u/Nicole_Jacque)\
**Post date:** [January 23, 2018, 6:52pm UTC](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370/12 "2018-01-23T18:52:13Z")

</div>

Hi Sam, consider it raised :-)

---

<div class="post-metadata">

**Author:** ![sam.saffron](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/sam.saffron/32/1161_2.png) [@sam.saffron](https://forums.swift.org/u/sam.saffron)\
**Post date:** [January 24, 2018, 2:40am UTC](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370/13 "2018-01-24T02:40:20Z")

</div>

Consider it built, will be deployed here later today:

[https://github.com/discourse/discourse/commit/3492a9105671c6795f4b92f54d9b88f93def4105](https://github.com/discourse/discourse/commit/3492a9105671c6795f4b92f54d9b88f93def4105)

😄

Also is there a reason oneboxes to Github are disabled?

---

<div class="post-metadata">

**Author:** ![Nicole\_Jacque](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/nicole_jacque/32/245_2.png) [@Nicole\_Jacque](https://forums.swift.org/u/Nicole_Jacque)\
**Post date:** [January 24, 2018, 6:07pm UTC](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370/14 "2018-01-24T18:07:46Z")

</div>

Awesome, thanks!

I'll pm you about onebox.

---

<div class="post-metadata">

**Author:** ![kansaichris](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/kansaichris/32/2703_2.png) [@kansaichris](https://forums.swift.org/u/kansaichris)\
**Post date:** [March 12, 2018, 6:17am UTC](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370/15 "2018-03-12T06:17:55Z")

</div>

Now that several weeks have passed since the ability to disable shortcode emojis was added to Discourse, should all emoji codes still appear in plain text on the site? For example, this is what @sam.saffron's comment looks like to me:

 ![23](https://global.discourse-cdn.com/swift/original/2X/3/343e29930bc684201041bb6c2356b530863fd948.png)

Is this expected behavior? If not, is there any timeline for automatically converting long emoji codes like `:smile:` into 😄?

---

<div class="post-metadata">

**Author:** ![sam.saffron](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/sam.saffron/32/1161_2.png) [@sam.saffron](https://forums.swift.org/u/sam.saffron)\
**Post date:** [March 14, 2018, 10:20pm UTC](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370/16 "2018-03-14T22:20:45Z")

</div>

I just turned on emojis here with @Nicole_Jacque's permission!

Enjoy the amazing new emojis (btw I picked the Apple emoji set for max consistency) ✌🏼 (`:v:t3:` - a ✌ using tone 3)

:) ;) etc will no longer get in the way.

I do want to refine it though so we are a bit smarter about disabling autocomplete right after you type ``` so it has less chances of being confusing in code blocks.

---

<div class="post-metadata">

**Author:** ![Nicole\_Jacque](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/nicole_jacque/32/245_2.png) [@Nicole\_Jacque](https://forums.swift.org/u/Nicole_Jacque)\
**Post date:** [March 14, 2018, 10:32pm UTC](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370/17 "2018-03-14T22:32:54Z")

</div>

Thanks Sam! 👍

---

<div class="post-metadata">

**Author:** ![taylorswift](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/taylorswift/32/43413_2.png) [@taylorswift](https://forums.swift.org/u/taylorswift)\
**Post date:** [March 14, 2018, 10:55pm UTC](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370/18 "2018-03-14T22:55:19Z")

</div>

i never knew emoji codes were a thing

---

<div class="post-metadata">

**Author:** ![Michael\_Ilseman](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/michael_ilseman/32/44640_2.png) [@Michael\_Ilseman](https://forums.swift.org/u/Michael_Ilseman)\
**Post date:** [March 15, 2018, 4:25pm UTC](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370/19 "2018-03-15T16:25:46Z")

</div>

Do you know when you're going to support the latest emoji? I tried to use [https://emojipedia.org/woman-zombie/](https://emojipedia.org/woman-zombie/) in [a thread](https://forums.swift.org/t/strings-in-swift-4/5085/58) as an example of how Unicode encodes emoji, and it didn't render 😅

---

<div class="post-metadata">

**Author:** ![Jean-Daniel](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@Jean-Daniel](https://forums.swift.org/u/Jean-Daniel)\
**Post date:** [March 15, 2018, 4:36pm UTC](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370/20 "2018-03-15T16:36:33Z")

</div>

Out of curiosity, what the pro of using emoji code while you can simply use 🧟‍♀️ ?

Edit: Funny. In the edit box my emoji properly render as a zombi woman, while in the forum it renders as a zombie man followed by a ♀variant. At least, it answers my question ;-)

[Next page](https://forums.swift.org/t/emoji-codes-support-and-autocomplete/8370.md?page=2)
