• This is a political forum that is non-biased/non-partisan and treats every person's position on topics equally. This debate forum is not aligned to any political party. In today's politics, many ideas are split between and even within all the political parties. Often we find ourselves agreeing on one platform but some topics break our mold. We are here to discuss them in a civil political debate. If this is your first visit to our political forums, be sure to check out the RULES. Registering for debate politics is necessary before posting. Register today to participate - it's free!

Forcing text editor to ignore certain formatting notations (1 Viewer)

Grizzly Adams

Lorem ipsum dolor sit amet
DP Veteran
Joined
Nov 11, 2011
Messages
12,192
Reaction score
4,352
Location
A mote of dust suspended in a sunbeam
Gender
Undisclosed
Political Leaning
Libertarian
Good morning,

Is there a way to force the text editor to ignore certain commands that are usually used for formatting, but also have a use in quote notation? Example in this thread: https://debatepolitics.com/threads/...unding-of-religious-christian-schools.563803/

In such cases, changing the tense of a quoted word is necessary to maintain proper grammar. One word needs an 's' added to it, which is done in brackets, leading to the rest of the post being struck through due to the forum software's interpretation of the bracketed s as initiating a strikethrough.

I've looked through the editor options but didn't see anything that might work other than the Code insertion feature, but that breaks continuity by basically entering the visual equivalent of a quote block on a separate line, mid-sentence, then finishing the sentence on yet another line. There's the option to remove formatting, but that doesn't work on formatting entered by markup, just the WYSIWYG editor; and, even if it did, I suspect it would just remove the bracketed 's' entirely, rather than ignore it.

Is there a way around this?

Thanks!
 
Good morning,

Is there a way to force the text editor to ignore certain commands that are usually used for formatting, but also have a use in quote notation? Example in this thread: https://debatepolitics.com/threads/...unding-of-religious-christian-schools.563803/

In such cases, changing the tense of a quoted word is necessary to maintain proper grammar. One word needs an 's' added to it, which is done in brackets, leading to the rest of the post being struck through due to the forum software's interpretation of the bracketed s as initiating a strikethrough.

I've looked through the editor options but didn't see anything that might work other than the Code insertion feature, but that breaks continuity by basically entering the visual equivalent of a quote block on a separate line, mid-sentence, then finishing the sentence on yet another line. There's the option to remove formatting, but that doesn't work on formatting entered by markup, just the WYSIWYG editor; and, even if it did, I suspect it would just remove the bracketed 's' entirely, rather than ignore it.

Is there a way around this?

Thanks!
You can insert a "dummy" BBCode inside the BBCode to effectively escape the outside one.

In other words for [s], insert [[B][/B]s]. The internal [B][/B] breaks the BBCode for the [s].
 
You can insert a "dummy" BBCode inside the BBCode to effectively escape the outside one.

In other words for , insert . The internal breaks the BBCode for the .




“[T]he cow ate some grass.”

“[T]he cow ate some grass.”
 
Well that confused things.
Unfortunately the DP text editor strips out dummy BBCodes in quoted replies. So if someone quotes you in their reply, they have to do the same trick.

I guess another option would be to use square bracket lookalikes like the Full-width bracket: "【" (U+3010) or Mathematical bracket: "⟦" (U+27E6).
 
You can insert a "dummy" BBCode inside the BBCode to effectively escape the outside one.

In other words for , insert . The internal breaks the BBCode for the .
This is my method for keeping the swears unfiltered when I don't want to be censored. As you note, however, quoting it breaks the trick.

I am intrigued by your later suggestion to try Unicode. I will have to explore this if there is no forum option to "comment out" portions of formatting code. Thanks!
 
Try the PLAIN BBcode.

Code:
[PLAIN]This is not [B]bold[/B] text.[/PLAIN]

Result:
This is not [B]bold[/B] text.
 
Try the PLAIN BBcode.

Code:
[PLAIN]This is not [B]bold[/B] text.[/PLAIN]

Result:
This is not [B]bold[/B] text.

“[T]he cow are some grass.”

”[T]he cow ate some grass.”
 
Is there a way to force the text editor to ignore certain commands that are usually used for formatting, but also have a use in quote notation?

You can also put a hair space after the open bracket to disable code for a tag.

The Court ruled that Maine purposely "identif[ ies] and exclude[ s] otherwise eligible schools on the basis of their religious exercise" and that that is "discrimination against religion".

The benefit being the resulting text can be copy and pasted normally or selected and quoted without the code being reintroduced. If I select the result sentence and hit "+Quote" from the post above, I get:

This is not bold text.

This is not [ B]bold[ /B] text.  <— Using a hair space after the bracket will allow it to work.
 

Users who are viewing this thread

Back
Top Bottom