SitePoint: Random Words Bolded

SitePoint needs to fix Discourse so that doesn’t bold certain words that also exist in programming.

For example…

If I read another post which looks like this, then I will scream!!

They probably have selected the text to be formatted as code. As in this one. If if if then

That’s the users fault.

1 Like

Need examples. Seriously, I haven’t a clue what you are talking about… If you can link to some examples, that would greatly help.

I have seen it, and as far as I can recall, it’s always been where the member has not formatted their post correctly, as @RyanReese says.

1 Like

This thread is very guilty of it.

However, user fault.

1 Like

Ah, yes, I can’t see any fix for those :frowning:

I will have to keep an eye out when I post.

In retrospect, Ryan may be right in that maybe it only happens when I use [ code ] to format my comments better.

It’s Monday morning and I’m not overly articulate yet, but I often use [ code ] when I have things like a list or comments with tabs in them or whatever, because it seems to retain my original formatting.

So maybe that is where I see the random words bolded

Side Note: It would be nice if there was a tag that retained formatting (e.g. tabs) better so then I wouldn’t need to use [ code ]

There is <pre> :slight_smile: Place your text between the opening and closing of the pre tag :smile:

1 Like

Before:
This is a test list created in TextEdit…
1.) Milk
2.) Bread
3.) Toilet Paper

After

This is a test list created in TextEdit...
    1.) Milk
    2.) Bread
    3.) Toilet Paper

Another test…

Before
if (empty($errors)){
foreach($commentsArray as $commentKey => $subArr){
if ($subArr[‘commentID’] == $reviewedCommentID){
$reviewedCommenterID = $subArr[‘commenterID’];
$reviewedCreatedOn = $subArr[‘createdOn’];
}
}
}

After

        if (empty($errors)){
            foreach($commentsArray as $commentKey => $subArr){
                if ($subArr['commentID'] == $reviewedCommentID){
                    $reviewedCommenterID = $subArr['commenterID'];
                    $reviewedCreatedOn = $subArr['createdOn'];
                }
            }
        }

Okay, I guess that does what I needed…

Yes the pre HTML tag will keep the exact formatting that you post.

Also note, for Markdown supported lists, you have to follow 2 rules.

  1. There must be a blank line between your paragraph above and the start of the list (see above)
  2. Use 1. and 2. (no parenthesis, or * or -)

You realize that making me learn yet ANOTHER markup language is really stressful, right??? :unamused:

Not markup, markDOWN :slight_smile: .

You don’t have to learn it; those buttons in the editor do all the work :slight_smile: .

3 Likes

I’m sure you can handle it. It isn’t as bad as it seems :smile:

Blah blah blah

I’ll have to look into all of them. Seems I had issues before and so I stopped using them.

What was so wrong with BBCode??

I’m experiencing a “Buffer Overflow” right now!! :wink:

Noting.But this is not vBulletin :smiley:

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.