130Views6Replies

Author Options:

disappearing string Answered

Instructbales keeps removing <IRremote.h> from my #include line from my Arduino code

Discussions

The forums are retiring in 2021 and are now closed for new topics and comments.
0
lemonie
lemonie

8 years ago

You could attach the code as a .txt file; those who are interested will download it, the rest are spared scrolling past code and you're saved the hassle of formatting it to the page.

L

0
techbitar
techbitar

8 years ago

I tried it but my code turns into one long line. I have copied the code from the Arduino IDE, Notepad, and also from Notepad++ but ended up with same result. Any suggestions how I can retail line breaks?

0
mikeasaurus
mikeasaurus

8 years ago

If you insert the brackets into the editor it won't recognize it as an Arduino sketch. While editing your project, in the rich editor try adding:

<pre>
<textarea cols="75" readonly="readonly" rows="20" style="width: 600px; height: 294px;">

***YOUR SKETCH TEXT***

</textarea>
</pre>
0
canucksgirl
canucksgirl

Reply 8 years ago

The code above will work, however in an Instructable, you must use the "Source" button (far right of your editor buttons) in order to paste the above code. If the height of the box isn't large enough, just change the number value in the code (but leave everything else the way it is).

The "Rich Editor" button only appears above the comment window. :-)

0
mikeasaurus
mikeasaurus

Reply 8 years ago

Right, forgot to add "go to source" and input this as HTML. Nice catch!

0
canucksgirl
canucksgirl

Reply 8 years ago

No problem. :)