View Full Version : COPY/PASTE from MicroCode with formatting - how to?
flotulopex
- 18th June 2009, 06:47
Hello there,
Is there a way to copy/paste code from MicroCode into this forum keeping its original formatting (commands in bold, upper/lower case, etc)?
flotulopex
- 29th June 2009, 14:26
Am I the only guy on earth not nowing how to do this?
Bruce
- 29th June 2009, 17:32
Save your file as .htm. Open it with Internet Explorer. Click View, Source. Then just copy
& paste it here between the code tags as usual.
blink.htm saved in MicroCode Studio.
<html>
<head></head>
<body><!--StartFragment--><pre><code><font color="#000080">' Example program from manual to blink an LED connected to PORTB.0 about once a second
</font><font color="#008000">@ device pic16F877, xt_osc, wdt_off, lvp_off, protect_off
</font><b>DEFINE </b>OSC 4
loop:
<b>HIGH </b>0 <font color="#000080">' Turn on LED connected to PORTB.0
</font><b>PAUSE </b>500 <font color="#000080">' Delay for .5 seconds
</font><b>LOW </b>0 <font color="#000080">' Turn off LED connected to PORTB.0
</font><b>PAUSE </b>500 <font color="#000080">' Delay for .5 seconds
</font><b>GOTO </b>loop <font color="#000080">' Go back to loop and blink LED forever
</font></code></pre><!--EndFragment--></body>
</html>
flotulopex
- 30th June 2009, 22:06
Hi Bruce,
Thanks a lot for your information.
I didn't notice I could save MCS's code in htm format...
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.