# Motoko documentation with live edits

**URL:** <https://forum.dfinity.org/t/motoko-documentation-with-live-edits/1659>\
**Category:** Developers\
**Created:** [December 14, 2020, 11:32pm UTC](https://forum.dfinity.org/t/motoko-documentation-with-live-edits/1659 "2020-12-14T23:32:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![chenyan](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@chenyan](https://forum.dfinity.org/u/chenyan)\
**Post date:** [December 14, 2020, 11:32pm UTC](https://forum.dfinity.org/t/motoko-documentation-with-live-edits/1659/1 "2020-12-14T23:32:45Z")

</div>

The Motoko documentation has been updated to support live edits of code examples: You can edit the code in the language guide and see the result in the browser. Check it out!

> **[The Internet Computer | Documentation](https://sdk.dfinity.org/docs/language-guide/motoko.html)**
>
> Documentation for the internet computer.

---

<div class="post-metadata">

**Author:** ![enzo](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/enzo/32/268_2.png) [@enzo](https://forum.dfinity.org/u/enzo)\
**Post date:** [December 15, 2020, 4:55am UTC](https://forum.dfinity.org/t/motoko-documentation-with-live-edits/1659/2 "2020-12-15T04:55:22Z")

</div>

This is awesome! Thanks Yan!

---

<div class="post-metadata">

**Author:** ![enzo](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/enzo/32/268_2.png) [@enzo](https://forum.dfinity.org/u/enzo)\
**Post date:** [December 17, 2020, 8:16am UTC](https://forum.dfinity.org/t/motoko-documentation-with-live-edits/1659/3 "2020-12-17T08:16:43Z")

</div>

Would be great to get line numbers in the side bar so that developers can locate the origin of their errors.

---

<div class="post-metadata">

**Author:** ![chenyan](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@chenyan](https://forum.dfinity.org/u/chenyan)\
**Post date:** [December 17, 2020, 6:23pm UTC](https://forum.dfinity.org/t/motoko-documentation-with-live-edits/1659/4 "2020-12-17T18:23:34Z")

</div>

Right, some of the examples are only one line, which doesn’t need line numbers. Maybe we can add line numbers when it’s more than 3 lines?

---

<div class="post-metadata">

**Author:** ![factorlive](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/factorlive/32/640_2.png) [@factorlive](https://forum.dfinity.org/u/factorlive)\
**Post date:** [December 22, 2020, 10:24am UTC](https://forum.dfinity.org/t/motoko-documentation-with-live-edits/1659/5 "2020-12-22T10:24:58Z")

</div>

nifty feature 👏

As in my case the interpreter yells at me all the time with line numbers, I think line numbers could be helpful in some examples.

---

<div class="post-metadata">

**Author:** ![Fulco](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/fulco/32/910_2.png) [@Fulco](https://forum.dfinity.org/u/Fulco)\
**Post date:** [December 24, 2020, 11:47am UTC](https://forum.dfinity.org/t/motoko-documentation-with-live-edits/1659/6 "2020-12-24T11:47:00Z")

</div>

Great stuff! A small UX point I would add is a green run completed or something when the code runs without errors. Now when you make an error and fix it the old error stays visible and you’re not sure if you’ve actually fixed it.

---

<div class="post-metadata">

**Author:** ![chenyan](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@chenyan](https://forum.dfinity.org/u/chenyan)\
**Post date:** [January 16, 2021, 12:38am UTC](https://forum.dfinity.org/t/motoko-documentation-with-live-edits/1659/7 "2021-01-16T00:38:07Z")

</div>

Thanks for all the feedback!

Line numbers are now added for code with more than 3 lines. The base library examples are also executable, although we don’t have many examples at the moment.
