Previous Thread
Next Thread
Print Thread
#2061 07/16/04 11:26 PM
Joined: Sep 2003
Posts: 119
hlwood Offline OP
Forum Member
OP Offline
Forum Member
Joined: Sep 2003
Posts: 119
Just a reminder to everyone. When posting scripts it is best to use either of the following 2 methods.....

First: Set the "Make post" drop down to "using HTML" and add the <pre> ..... </pre> directives at the top and
bottom of your post.

Second: Set the "Make post" drop down to "using UBBCode" and add the [code] ...... [/code] directives at the
top and bottom of your post.

Also, if you need to post C code for any reason then you must do the includes in the following way....
#include < stdio.h >
Notice the space in between the < and the filename.

Hope this helps,
Lee

Joined: Sep 2003
Posts: 8,659
Likes: 26
rmv Online Content
Forum Member
Online Content
Forum Member
Joined: Sep 2003
Posts: 8,659
Likes: 26
With the software upgrade, I've found that it's now necessary to use two HTML tags to get proper white space behavior, both <pre> and <kbd>. The former allows multiple space chars to be preserved, while the latter is needed to force the use of a fixed size font. Also, the <kbd> tag needs to follow the <pre> tag, as illustrated below:

Some descriptive text, blah, blah, blah
<pre><kbd>
source code or CHARMM input script
</kbd></pre>

Don't forget to select "Using HTML and UBBCode"


Rick Venable
computational chemist

Joined: Feb 2004
Posts: 147
Forum Member
Offline
Forum Member
Joined: Feb 2004
Posts: 147
If I want to edit a post that was had initially set "using HTML", all the HTML tags appear afterwards
in clear text as if UBB changed the post to "using BBCode"; furthermore when editing I don't have
the choice of changing this setting. The quick-and-dirty solution was to:
1. copy-and-paste to a text editor the text given by UBB including the HTML tags
2. delete the post
3. re-add the post with cut-and-paste from the text editor, then make the changes and submit

That's not quite convenient, isn't it ?

Joined: Sep 2003
Posts: 119
hlwood Offline OP
Forum Member
OP Offline
Forum Member
Joined: Sep 2003
Posts: 119
This problem should be fixed now...

We have done some fixing up of the html/ubb tag code in our version. You should not be able to post in html/ubb and edit these posts with having additional spaces inserted or any other weird stuff happening.

Please let me know if you have any other problems with white space issuses...


Moderated by  lennart, rmv 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5
(Release build 20201027)
Responsive Width:

PHP: 7.3.31-1~deb10u5 Page Time: 0.018s Queries: 22 (0.014s) Memory: 0.7411 MB (Peak: 0.7907 MB) Data Comp: Off Server Time: 2023-12-03 01:34:07 UTC
Valid HTML 5 and Valid CSS