# Code Blocks on an iPad Mini 2

**URL:** https://meta.discourse.org/t/code-blocks-on-an-ipad-mini-2/30080
**Category:** Support
**Tags:** tablet
**Created:** [June 16, 2015, 12:29pm UTC](https://meta.discourse.org/t/code-blocks-on-an-ipad-mini-2/30080 "2015-06-16T12:29:21Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [June 16, 2015, 12:29pm UTC](https://meta.discourse.org/t/code-blocks-on-an-ipad-mini-2/30080/1 "2015-06-16T12:29:21Z")

</div>

Okay, so first off, I don’t own an iPad, nor do I have one readily available for testing, hence my silly question.

How does one create code blocks from an iPad? I’ve been told be a user attempting to do such, that there are no backticks on the iPad virtual keyboard, and entering 4 spaces before each line of code gets truncated, so there are no longer 4 spaces…

What options does this person have?

---

<div class="post-metadata">

### Author: ![John\_Betong](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/john_betong/32/108377_2.png) [@John\_Betong](https://meta.discourse.org/u/John_Betong)
#### Post date: [June 16, 2015, 12:34pm UTC](https://meta.discourse.org/t/code-blocks-on-an-ipad-mini-2/30080/2 "2015-06-16T12:34:55Z")

</div>

Actually the problem I have is with an iPad Mini 2, I don’t know if the problem exists on all iPads and iPad Minis.

---

<div class="post-metadata">

### Author: ![Tom\_Newsom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tom_newsom/32/115981_2.png) [@Tom\_Newsom](https://meta.discourse.org/u/Tom_Newsom)
#### Post date: [June 16, 2015, 12:36pm UTC](https://meta.discourse.org/t/code-blocks-on-an-ipad-mini-2/30080/3 "2015-06-16T12:36:08Z")

</div>

You can tap and hold the ’ button to get a `  
Not convenient for typing 4 of them, but it should work!

---

<div class="post-metadata">

### Author: ![John\_Betong](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/john_betong/32/108377_2.png) [@John\_Betong](https://meta.discourse.org/u/John_Betong)
#### Post date: [June 16, 2015, 12:50pm UTC](https://meta.discourse.org/t/code-blocks-on-an-ipad-mini-2/30080/4 "2015-06-16T12:50:09Z")

</div>

@Tom_Newsom

Try again

```plaintext
<?php
echo 'I hope this works';

echo 'I hope this works';

```

Yippeeee, what a carry on. When the ’ is tapped and held, three options appear and one of the options is a backtick.

Many thanks.

---

<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 1, 2016, 11:07pm UTC](https://meta.discourse.org/t/code-blocks-on-an-ipad-mini-2/30080/5 "2016-01-01T23:07:14Z")

</div>

> [@cpradio](#):
>
> I don’t own an iPad, nor do I have one readily available for testing

You do now, though! Tap and hold. 😉

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [January 1, 2016, 11:56pm UTC](https://meta.discourse.org/t/code-blocks-on-an-ipad-mini-2/30080/6 "2016-01-01T23:56:32Z")

</div>

Ha, I completely forgot about this topic, and yes, you are indeed correct, I do now. 🙂 (and am enjoying it)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:45pm UTC](https://meta.discourse.org/t/code-blocks-on-an-ipad-mini-2/30080/7 "2024-06-08T12:45:56Z")

</div>

This topic was automatically closed after 3280 days. New replies are no longer allowed.
