# Docstrings and triple-quoted strings in Atom/Juno

**URL:** <https://discourse.julialang.org/t/docstrings-and-triple-quoted-strings-in-atom-juno/12209>\
**Category:** Juno\
**Created:** [July 6, 2018, 12:25pm UTC](https://discourse.julialang.org/t/docstrings-and-triple-quoted-strings-in-atom-juno/12209 "2018-07-06T12:25:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pfarndt](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@pfarndt](https://discourse.julialang.org/u/pfarndt)\
**Post date:** [July 6, 2018, 12:25pm UTC](https://discourse.julialang.org/t/docstrings-and-triple-quoted-strings-in-atom-juno/12209/1 "2018-07-06T12:25:24Z")

</div>

I am often using “shift-enter” to read parts of a source file to the REPL. For example:

```julia
"""
A very helpful function giving 12
"""
f() = 12

```

When I do so the following happens:

 ![45%20PM](https://global.discourse-cdn.com/julialang/original/3X/c/8/c878a36f170a3f8492bb948942e9427cb3816f3d.png)

I actually do not need to have the doctoring itself available in the REPL’s `help>` mode. Apart from the inconvenience of pressing shift-enter at least 3 time, I am more worried about executing some code which is in the docstring itself. I tend to “circumvent” this issue by not documenting my code.

Probably related is a more general issue about triple-quoted strings, e.g. when `using RCall`

```julia
using RCall

R"42"

R"""
42
"""

```

The sigle quoted syntax is understood by the REPL, the triple quoted not.

---

<div class="post-metadata">

**Author:** ![chakravala](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chakravala/32/6832_2.png) [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Post date:** [July 6, 2018, 1:07pm UTC](https://discourse.julialang.org/t/docstrings-and-triple-quoted-strings-in-atom-juno/12209/2 "2018-07-06T13:07:35Z")

</div>

The solution is to **highlight** the entire block of code and then press shift+enter.

---

<div class="post-metadata">

**Author:** ![pfarndt](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@pfarndt](https://discourse.julialang.org/u/pfarndt)\
**Post date:** [July 6, 2018, 1:36pm UTC](https://discourse.julialang.org/t/docstrings-and-triple-quoted-strings-in-atom-juno/12209/3 "2018-07-06T13:36:16Z")

</div>

Ok - this would be a work-around. Still a bit inconvenient because one would have to first select some code and then send it to the REPL.

However, `for` loops, function definition etc. are also identified as such a send in to the REPL in one go. Couldn’t this behavior also adapted to triple quoted strings?
