# RFE for Footnote Plugin: allow in code blocks

**URL:** https://meta.discourse.org/t/rfe-for-footnote-plugin-allow-in-code-blocks/211105
**Category:** Feature
**Tags:** footnote
**Created:** [December 4, 2021, 4:16pm UTC](https://meta.discourse.org/t/rfe-for-footnote-plugin-allow-in-code-blocks/211105 "2021-12-04T16:16:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mattdm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattdm/32/216484_2.png) [@mattdm](https://meta.discourse.org/u/mattdm)
#### Post date: [December 4, 2021, 4:16pm UTC](https://meta.discourse.org/t/rfe-for-footnote-plugin-allow-in-code-blocks/211105/1 "2021-12-04T16:16:20Z")

</div>

It would be nice to be able to do this:

* * *

Hi! To solve your problems, you need to run these commands:

````
```bash:with-footnotes
$ sudo mv /etc/whatever.conf /etc/whatever.conf.bak [^1]
$ sudo whatever genconfig [^2]
$ sudo systemctl restart whatever [^3]
```

[^1]: Back up old config file
[^2]: This command is part of the `whatever` package, and will write a clean config file
[^3]: need to restart the service to pick up the new configuration

````

* * *

This would be _super_ useful because one can in this way explain inline while making the explanation clearly separate from the commands to type.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [December 6, 2021, 12:05am UTC](https://meta.discourse.org/t/rfe-for-footnote-plugin-allow-in-code-blocks/211105/2 "2021-12-06T00:05:46Z")

</div>

Understood, it is a bit tricky but doable I guess.

Usually I use code comments for stuff like this:

```bash
# move stuff  
sudo mv /from /to

```

---

<div class="post-metadata">

### Author: ![mattdm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattdm/32/216484_2.png) [@mattdm](https://meta.discourse.org/u/mattdm)
#### Post date: [December 6, 2021, 12:53am UTC](https://meta.discourse.org/t/rfe-for-footnote-plugin-allow-in-code-blocks/211105/3 "2021-12-06T00:53:59Z")

</div>

Yeah, that’s what I’ve done too, but I _guarantee_ that someone will ignore the `#` and type `move stuff`, and also, someone else will think “oh, that `#` means I need to run `move stuff` as root”.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [January 17, 2022, 9:57pm UTC](https://meta.discourse.org/t/rfe-for-footnote-plugin-allow-in-code-blocks/211105/4 "2022-01-17T21:57:59Z")

</div>

In my opinion, the engineering effort to cover that edge case is not justified by the very small number of people who will be foolish enough to do that.

---

<div class="post-metadata">

### Author: ![mattdm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattdm/32/216484_2.png) [@mattdm](https://meta.discourse.org/u/mattdm)
#### Post date: [January 17, 2022, 10:26pm UTC](https://meta.discourse.org/t/rfe-for-footnote-plugin-allow-in-code-blocks/211105/5 "2022-01-17T22:26:37Z")

</div>

Okay, fair enough. 🙂
