100Views6Replies

Author Options:

disappearing string Answered

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

6 Replies

user
lemonie (author)2012-09-19

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

Select as Best AnswerUndo Best Answer

user
techbitar (author)2012-09-19

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?

Select as Best AnswerUndo Best Answer

user
mikeasaurus (author)2012-09-18
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>

Select as Best AnswerUndo Best Answer

user
canucksgirl (author)mikeasaurus2012-09-18

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. :-)

Select as Best AnswerUndo Best Answer

user
mikeasaurus (author)canucksgirl2012-09-18

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

Select as Best AnswerUndo Best Answer