Skip to content

Commit 32cd5a9

Browse files
committed
Update "code tags" button in asset posts
The post composer toolbar button that adds inline and block preformatted/code markup to posts has been changed from a "</>" design to "<CODE/>".
1 parent 15e4e2d commit 32cd5a9

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

content/categories/templates/_topics/code-tags-usage/1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Thank you for posting your code but I am sure you can see that the formatting is a mess. The forum has something called 'code tags', which sort out the problems with the formatting. If you edit your code to include the code tags </>, the code will be easier to read and you will be more likely to get help.
1+
Thank you for posting your code but I am sure you can see that the formatting is a mess. The forum has something called 'code tags', which sort out the problems with the formatting. If you edit your code to include the code tags \<CODE/\>, the code will be easier to read and you will be more likely to get help.
22

33
If you are unsure what to do please follow the advice given in the link below when posting code, there are instructions for using code tags, along with lots of other advice to help us to help you.
44
https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966#posting-code

content/categories/templates/_topics/general-user-advice/1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ It will help you get the best out of the forum in the future.
66
- Always list the version of the IDE you are using and the board version if applicable.
77
- Use quote or add error messages as an attachment NOT a picture.
88
- How to [insert an image](https://forum.arduino.cc/t/a-thread-with-tips-and-tricks-for-the-new-discourse-based-arduino-forum/849827/3) into your post. ( Thanks @sterretje )
9-
- Add your sketch where applicable but please use CODE TAGS ( **</>** )
9+
- Add your sketch where applicable but please use CODE TAGS ( **\<CODE/\>** )
1010
- Add a SCHEMATIC were needed even if it is hand drawn
1111
- Add working links to any specific hardware as needed (**NOT** links to similar items)
1212
- Remember that the people trying to help cannot see your problem so give as much information as you can

content/categories/using-arduino/installation-troubleshooting/_topics/how-to-get-the-best-out-of-this-forum/1.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ If you are using something that is a non-Arduino product then it helps to have a
3636

3737
### [Code problems](#code-problems)
3838

39-
We can only find problems in code we can see. Please supply your complete code in code tags **`</>`** [More about posting code and using code tags](#posting-code). If you are using Arduino Create then you can post a link to your project (but keep in mind that not everyone uses Arduino Create).
39+
We can only find problems in code we can see. Please supply your complete code in code tags **`<CODE/>`** [More about posting code and using code tags](#posting-code). If you are using Arduino Create then you can post a link to your project (but keep in mind that not everyone uses Arduino Create).
4040

4141
Posting a snippet of code is generally useless. The problem is usually in another part of the program.
4242

4343
Before posting code, please use Tools / Auto Format at the top of the IDE. It makes the code much easier to read and you will probably find it very helpful yourself. Once you've done that, use Edit / Copy for Forum.
4444

45-
Always use code tags (**`</>`**) when posting code or compiler error messages.
45+
Always use code tags (**`<CODE/>`**) when posting code or compiler error messages.
4646
Using code tags makes the code easier to read and easy to copy. Not using code tags means some of the code gets displayed with smiley faces and other stuff that should not be there. Be aware that there is a limit of 120000 characters for a post. If your code takes you above this limit then you can add your .ino file as an attachment. However, it will be much easier to help you if you can write a short program that illustrates the problem you are having and post that.
4747

4848
Please don't post an image of code instead of the code itself, or an image of error messages instead of the error messages themselves.
@@ -139,9 +139,9 @@ Once you have found the right category you can start your post. Click on New Top
139139

140140
Enter a title and a description of your problem:
141141

142-
![Compose post|690x396](https://europe1.discourse-cdn.com/arduino/original/4X/e/8/2/e82dd9261ba78475d4ed9ec9c1a2d430674da54d.png)
142+
![Compose post|690x423, 70%](https://europe1.discourse-cdn.com/arduino/original/4X/2/4/6/2466d0d65f4dd963493f50ac0aee9f07066dc44b.png)
143143

144-
Don't forget to include code in code tags **`</>`** and a schematic of your circuit.
144+
Don't forget to include code in code tags **`<CODE/>`** and a schematic of your circuit.
145145

146146
For your first two posts, the right hand side of the post composer pane will show a welcome message. Once you have closed that message, you will see a preview of how your post will look once you have submitted it.
147147

@@ -151,7 +151,7 @@ For your first two posts, the right hand side of the post composer pane will sho
151151

152152
When you are happy with your post click on + Create Topic to post it.
153153

154-
![Create topic|482x500](https://europe1.discourse-cdn.com/arduino/original/4X/3/8/8/3888dbaf5834c68321792a21d9493b24e9ff8165.png)
154+
![Create topic|403x500, 75%](https://europe1.discourse-cdn.com/arduino/original/4X/9/8/7/9870b27af83959c9d5b08f479a9d89fdeed78b1b.png)
155155

156156
That's your first post completed.
157157

@@ -176,7 +176,7 @@ Before copying your code for the forum, look in Tools on the menu bar of the Ard
176176

177177
### [Use code tags](#use-code-tags)
178178

179-
Code should be be in code tags, these are the **`</>`** in the tool bar above where you edit your post, and correctly formatted, like this:
179+
Code should be be in code tags, these are the **`<CODE/>`** in the tool bar above where you edit your post, and correctly formatted, like this:
180180

181181
```
182182
char message[][4] = { "hi", "bye" };
@@ -220,7 +220,7 @@ void loop() {
220220

221221
There's more than one way to add code tags, you can:
222222

223-
- Paste your code in the box where you are editing your post, select all the code and click on **`</>`**.
223+
- Paste your code in the box where you are editing your post, select all the code and click on **`<CODE/>`**.
224224
- In the Arduino IDE under the 'Edit' menu there is 'Copy for Forum', this puts your code on the clipboard with code tags added ready to paste into your question.
225225

226226
<a name="minimal-reproducible-example"></a>

0 commit comments

Comments
 (0)