Message 1096 of 1157

What is an easy way to write code in a post?

What would be an easy way to write code in a post? Are is there one?

I know some code will not execute when it is first written and can be posted.

And sometimes, you can post, preview, then edit, paste what you had written again and post without going through preview and it will work.

I know you can put a space between some of the code, but then the person reading it has to know there are extra spaces and remember to remove them.

For instance, the code from the help files:
To show in a post, a "& l t ;" without it executing the html code, replace it with & l t ;

If you write the & l t ; without the spaces it turns into <
And I keep forgetting what the characters are and have to look it up!

I'm simply trying to find the simpliest, easiest way, if there is one?!?

Thanks!
Mimi58's profile
Replies 1 - 10 of 11
I'm gonna be watching this one to see if somebody has a way to do it. The most aggravating thing is when you're trying to write code out for somebody, then if you preview & go back to edit, Eons converts it -- arrgghh!!!
Sylk's profile

about 1 year ago
<>
you don't have to look it up,
<> then review, you'll get & l t ; and & g t ; (remove the spaces)..
we did a lot of coding back in my WEBTV days, we could use a textarea, to show code and make it handy to copy, no-go on eons..
we also could use <plaintext>
and

<<>
none of that works on eons..
I guess you could use .txt and post it in the file area..
HonestJohn's profile

about 1 year ago

So here is my view of the problem.... believing Eons when it says "go back to EDIT".



As we all know too well, that is not exactly true. Links get turned into the generic 'view link' euphamism and any HTML symbols like &lt; get stuck in a one-way translation.

test: <tag> <b>word

So here are the steps in my solution.

1] Write your post in your favorite HMTL editor.
2] Preview on your PC
3] cut and paste to the POST input box
4] PREVIEW on Eons
5] click EDIT.... BUT
6] make any changes/corrections, etc. in your HTML editor
7] then re-cut & paste over whatever got returned in the Eons editor
8] then go straight to POST
9] this isn't a 100% solution, but it will cut some of the frustration and get you closer to the way it should be!!

Don't use HTML list items. Eons really messes them up.

Michael....

mbotos's profile

about 1 year ago
here is a cool tool to bookmark.



<pre>
<html>
</pre>
view link



view link
/www.stanford.edu/~bsuter/js/convert. html
HonestJohn's profile

about 1 year ago
eons has a way of making a coder look foolish.. lol
let me try that url one more time..
www.stanford.edu/~bsuter/js/convert.html
www.stanford.edu/~bsuter/js/convert.html
HonestJohn's profile

about 1 year ago
to show
&gt; and &lt;
use & amp
or source the site I posted, to learn a bunch..
HonestJohn's profile

about 1 year ago
Thanks, everyone!

Thanks, boocoos, Michael for the step-by-step. I get frustrated with the message box even when I'm not trying to share code.

And Thanks, HonestJohn, for the link. That looks like a great tool! Can't wait to try it out!

Ahh, the members here are the greatest!
Mimi58's profile

about 1 year ago
This is the code I stol -- umm, borrowed from Michael's posting about the sandbox. It puts a background to a message post. I converted it at the link HonestJohn gave us.

<div style="width:600; padding: 7px 15px; border-style: dashed; border-color: red; background:#AFF;">YOUR TEXT HERE</div>

I pasted the conversion in the message and it looked the way I wanted it to in the preview.

Woohoo!!

I'm going to preview and then post and see what happens. If it comes out right, that will eliminate having to go back into edit and then straight to post. Keep your fingers crossed.
Mimi58's profile

about 1 year ago




And the Award Goes To



Drum Roll, Please

Michael and HonestJohn!!





I'm not taking chances this time, though. I'll preview, go back into edit. Paste everything again and go straight to post! Thanks, guys! If you were on payroll, I'd give you a raise!
Mimi58's profile

about 1 year ago


Thank you HonestJohn for that very useful link.


Rich702's profile

about 1 year ago
Replies 1 - 10 of 11