Code formatting messed up...
|
09-12-2018, 08:03 PM
(This post was last modified: 09-12-2018 08:21 PM by Dieter.)
Post: #2
|
|||
|
|||
RE: Code formatting messed up...
(09-12-2018 07:31 PM)Jonathan Busby Wrote: When I view this article which I wrote recently, some of the text in the code blocks was not formatted correctly, and I checked and there are no extraneous spaces or tabs. Also, Greek character alpha ( α ) is shown in bold in one of the code blocks. The only alpha I see is not bold. A look at the page's source code also shows no tags for bold text there. Regarding the formatting and blanks: please note that the museum's editor uses a proportinal font, while the final result (when the article is displayed) is shown with a fixed width font. So the message editor is not "WYSIWYG"!. It's a good idea to prepare such code blocks in an external editor (that is set to a fixed-width font) and finally copy the code block from there into the museum's message editor. That's the way I do it. By the way, you should start your code right after the intial [ code ] tag, and not in the next line. Otherwise the code block will start with a blank line, as shown in your post. (09-12-2018 07:31 PM)Jonathan Busby Wrote: In addition, when I try to add newlines between the elements in a bulleted list, they do nothing and the list's contents are stacked right on top of each other, which is quite ugly. That's the way HTML works. ;-) But there is a way:
Another hint: use the "Preview Post" button before posting a message. This will show you how the final result will look like. Don't press the "Post Reply" button until you're satisfied with the result. Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)