# Can't make a selected text a code

**URL:** <https://discourse.processing.org/t/cant-make-a-selected-text-a-code/43846>\
**Category:** Processing for Android\
**Created:** [February 6, 2024, 8:33pm UTC](https://discourse.processing.org/t/cant-make-a-selected-text-a-code/43846 "2024-02-06T20:33:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![AniManOtaku](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/animanotaku/32/18733_2.png) [@AniManOtaku](https://discourse.processing.org/u/AniManOtaku)\
**Post date:** [February 6, 2024, 8:33pm UTC](https://discourse.processing.org/t/cant-make-a-selected-text-a-code/43846/1 "2024-02-06T20:33:29Z")

</div>

why can’t i make it a code?

 ![Screenshot_2024-02-02-22-50-07-417_com.opera.browser](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/2/9/2948bacc9fac54c12c386e3333fd8c81452a02cf.jpeg)

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [February 7, 2024, 9:53am UTC](https://discourse.processing.org/t/cant-make-a-selected-text-a-code/43846/2 "2024-02-07T09:53:31Z")

</div>

Sorry,

can you please post your code as text instead of using an image

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [February 8, 2024, 9:45pm UTC](https://discourse.processing.org/t/cant-make-a-selected-text-a-code/43846/3 "2024-02-08T21:45:14Z")

</div>

> [@AniManOtaku](#):
>
> why can’t i make it a code?

How did you try it?

Thank you.

---

<div class="post-metadata">

**Author:** ![AniManOtaku](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/animanotaku/32/18733_2.png) [@AniManOtaku](https://discourse.processing.org/u/AniManOtaku)\
**Post date:** [February 9, 2024, 12:16am UTC](https://discourse.processing.org/t/cant-make-a-selected-text-a-code/43846/4 "2024-02-09T00:16:27Z")

</div>

There used to be a button to turn text into code.  
like this one here:

 ![Screenshot_2024-02-09-02-12-06-738_com.opera.browser](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/d/e/dee503ee1c504f73750299d791fa411c305628bb.png)

But now it’s not there.

---

<div class="post-metadata">

**Author:** ![AniManOtaku](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/animanotaku/32/18733_2.png) [@AniManOtaku](https://discourse.processing.org/u/AniManOtaku)\
**Post date:** [February 9, 2024, 12:22am UTC](https://discourse.processing.org/t/cant-make-a-selected-text-a-code/43846/5 "2024-02-09T00:22:08Z")

</div>

> [@Chrisir](#):
>
> Sorry,
> 
> can you please post your code as text instead of using an image

How can it help?  
Actually, that button is long gone. I thought it would be fixed later, but for some reason it’s still not there.

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [February 9, 2024, 6:54am UTC](https://discourse.processing.org/t/cant-make-a-selected-text-a-code/43846/8 "2024-02-09T06:54:53Z")

</div>

Ah, you mean here in the forum?

You are right the button is missing.

@sableraph bug in forum software, missing button for code (only on mobile, on a normal browser it’s there)

You can also use ctrl-e or write mark-up `Test `

Use this sign before and after the code (within one line):  
` ` `

And for multiple lines three of those before and after the code section :

```auto
   for {
      ...
    }

```

( My iPhone destroys those but on a PC it’s working)

---

<div class="post-metadata">

**Author:** ![sableraph](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sableraph/32/251_2.png) [@sableraph](https://discourse.processing.org/u/sableraph)\
**Post date:** [February 9, 2024, 11:40am UTC](https://discourse.processing.org/t/cant-make-a-selected-text-a-code/43846/9 "2024-02-09T11:40:35Z")

</div>

I previously resolved this by applying a solution found in the thread linked below, but the most recent update to Discourse has unfortunately undone that fix. I posted in the thread and plan to contact Discourse support in hopes of a resolution.

In the meantime, you can three backticks before and after a code block like so:

```  
your code  
here  
```

> **[Why so many options in the gear editor menu?](https://meta.discourse.org/t/why-so-many-options-in-the-gear-editor-menu/239497)**
>
> On desktop where there is plenty of room in the main menu bar, why are so many options hidden behind the gear menu option? Weren’t Preformatted text, Bulluted List and Numbered List in the main menu bar previously?

---

<div class="post-metadata">

**Author:** ![sableraph](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sableraph/32/251_2.png) [@sableraph](https://discourse.processing.org/u/sableraph)\
**Post date:** [February 9, 2024, 11:45am UTC](https://discourse.processing.org/t/cant-make-a-selected-text-a-code/43846/10 "2024-02-09T11:45:33Z")

</div>

Update: I removed the prior fix and the button reappeared in the cog menu on mobile. We would need an alternative fix to bring the button back in the header menu.

---

<div class="post-metadata">

**Author:** ![sableraph](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sableraph/32/251_2.png) [@sableraph](https://discourse.processing.org/u/sableraph)\
**Post date:** [February 9, 2024, 12:21pm UTC](https://discourse.processing.org/t/cant-make-a-selected-text-a-code/43846/11 "2024-02-09T12:21:07Z")

</div>

This should be fixed now! Let me know if you notice any further issues when formatting code.

For future reference: here is [the fix I applied](https://meta.discourse.org/t/why-so-many-options-in-the-gear-editor-menu/239497/18?u=sableraph).
