diff --git a/.editorconfig b/.editorconfig index 87fd65028..fbc9a8842 100644 --- a/.editorconfig +++ b/.editorconfig @@ -109,3 +109,8 @@ indent_size = 2 [*.rs] indent_style = space indent_size = 4 + +# Emojicode +[*.emojic] +indent_style = space +indent_size = 2 diff --git a/book.json b/book.json index 94676c45b..ca4aa6cd9 100644 --- a/book.json +++ b/book.json @@ -139,6 +139,10 @@ { "lang": "f90", "name": "Fortran90" + }, + { + "lang": "emojic", + "name": "Emojicode" } ] } diff --git a/contents/bubble_sort/bubble_sort.md b/contents/bubble_sort/bubble_sort.md index f18fb0e7a..bc98322f9 100644 --- a/contents/bubble_sort/bubble_sort.md +++ b/contents/bubble_sort/bubble_sort.md @@ -50,6 +50,8 @@ This means that we need to go through the vector $$\mathcal{O}(n^2)$$ times with [import:5-9, lang:"nim"](code/nim/bubble_sort.nim) {% sample lang="f90" %} [import:19-40, lang:"fortran"](code/fortran/bubble.f90) +{% sample lang="emojic" %} +[import:2-14, lang:"emojicode"](code/emojicode/bubble_sort.emojic) {% endmethod %} ... And that's it for the simplest bubble sort method. @@ -105,6 +107,8 @@ Trust me, there are plenty of more complicated algorithms that do precisely the [import, lang:"nim"](code/nim/bubble_sort.nim) {% sample lang="f90" %} [import, lang:"fortran"](code/fortran/bubble.f90) +{% sample lang="emojic" %} +[import, lang:"emojicode"](code/emojicode/bubble_sort.emojic) {% endmethod %}