question

Joerg Vogel avatar image
0 Likes"
Joerg Vogel asked Sam Stubbs converted comment to answer

How to write code in answer.flexsim.com

I'd tried to write source code in an answer. But the format divers between editing mode and released answer. Could you give me an advice, how many characters a line consists of or how can I format my code?

released answer code

formated code in editor of the answer site

Choose One
answers.flexsim.comdzoneformatcode presentingcode tag
xcygw.png (8.3 KiB)
2ksj4.png (8.9 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Sam Stubbs avatar image
1 Like"
Sam Stubbs answered

Unfortunately, there's no really easy way to format it. The length of characters across is determined by window size and zoom. I've found that if you are copying and pasting from somewhere else, it helps if you click on the code button first and insert it there, rather than just paste it as text and highlight it and then click the code button. Also it usually helps if I paste (or type it up) in something like Notepad first, and get the formatting closer to what I want there before pasting it in the comment.

But as for the difference between the displayed text and the text entered in the comment field, I'm not quite sure how to reconcile those easily.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.