You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/categories/templates/_topics/code-tags-usage/1.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff 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.
2
2
3
3
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.
Copy file name to clipboardExpand all lines: content/categories/templates/_topics/general-user-advice/1.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ It will help you get the best out of the forum in the future.
6
6
- Always list the version of the IDE you are using and the board version if applicable.
7
7
- Use quote or add error messages as an attachment NOT a picture.
8
8
- 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/\>** )
10
10
- Add a SCHEMATIC were needed even if it is hand drawn
11
11
- Add working links to any specific hardware as needed (**NOT** links to similar items)
12
12
- Remember that the people trying to help cannot see your problem so give as much information as you can
Copy file name to clipboardExpand all lines: content/categories/using-arduino/installation-troubleshooting/_topics/how-to-get-the-best-out-of-this-forum/1.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -36,13 +36,13 @@ If you are using something that is a non-Arduino product then it helps to have a
36
36
37
37
### [Code problems](#code-problems)
38
38
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).
40
40
41
41
Posting a snippet of code is generally useless. The problem is usually in another part of the program.
42
42
43
43
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.
44
44
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.
46
46
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.
47
47
48
48
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
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.
145
145
146
146
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.
147
147
@@ -151,7 +151,7 @@ For your first two posts, the right hand side of the post composer pane will sho
151
151
152
152
When you are happy with your post click on + Create Topic to post it.
@@ -176,7 +176,7 @@ Before copying your code for the forum, look in Tools on the menu bar of the Ard
176
176
177
177
### [Use code tags](#use-code-tags)
178
178
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:
180
180
181
181
```
182
182
char message[][4] = { "hi", "bye" };
@@ -220,7 +220,7 @@ void loop() {
220
220
221
221
There's more than one way to add code tags, you can:
222
222
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/>`**.
224
224
- 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.
0 commit comments