# Comments in Canvas expression editor

**URL:** https://discuss.elastic.co/t/comments-in-canvas-expression-editor/193951
**Category:** Kibana
**Tags:** canvas
**Created:** [August 6, 2019, 7:33am UTC](https://discuss.elastic.co/t/comments-in-canvas-expression-editor/193951 "2019-08-06T07:33:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![BennyInc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bennyinc/32/21751_2.png) [@BennyInc](https://discuss.elastic.co/u/BennyInc)
#### Post date: [August 6, 2019, 7:33am UTC](https://discuss.elastic.co/t/comments-in-canvas-expression-editor/193951/1 "2019-08-06T07:33:38Z")

</div>

Is there a way to add comments in the Canvas expression editor?

I have created a rather complex expression with multiple pipes to work around a Canvas limitation ([timezones](https://github.com/elastic/kibana/issues/23075)), and want to document _how_ and _why_ I did it, with short instructions on how I think it should work once the limitation is resolved.

I've tried `#comment` and `//comment`, as well as `<!--comment-->` and `/*comment*/` to no avail. Searching on the documentation didn't help either.

Any ideas?

---

<div class="post-metadata">

### Author: ![christophilus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christophilus/32/42991_2.png) [@christophilus](https://discuss.elastic.co/u/christophilus)
#### Post date: [August 6, 2019, 4:34pm UTC](https://discuss.elastic.co/t/comments-in-canvas-expression-editor/193951/2 "2019-08-06T16:34:21Z")

</div>

There isn't, but it would make a good [enhancement request](https://github.com/elastic/kibana/issues) 🙂

---

<div class="post-metadata">

### Author: ![BennyInc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bennyinc/32/21751_2.png) [@BennyInc](https://discuss.elastic.co/u/BennyInc)
#### Post date: [August 7, 2019, 1:08pm UTC](https://discuss.elastic.co/t/comments-in-canvas-expression-editor/193951/3 "2019-08-07T13:08:25Z")

</div>

Opened a feature request: [https://github.com/elastic/kibana/issues/42829](https://github.com/elastic/kibana/issues/42829)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 4, 2019, 1:08pm UTC](https://discuss.elastic.co/t/comments-in-canvas-expression-editor/193951/4 "2019-09-04T13:08:27Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
