EnlighterJS / Plugin.WordPress

:package: Official WordPress Plugin of EnlighterJS
http://wordpress.org/plugins/enlighter/
GNU General Public License v2.0
118 stars 17 forks source link

Do not capitalize "raw" #261

Closed moeenio closed 4 years ago

moeenio commented 4 years ago

raw in raw code should not be capitalized, because it can then be confused with RAW images.

AndiDittrich commented 4 years ago

Hi @locness3

you can alter the language list and change the label using the filter functions. the capitalized letters are used to indicate that this is not a highlighting language.

generally i didn't think that users are confused because if they're in contact with the select boxes they already added a "codeblock"

moeenio commented 4 years ago

Still, this doesn't look right to me. And it's not only in the backend part, it's also visible when hovering the "raw" button on code blocks, in the tooltip (though the button itself isn't capitalized)

AndiDittrich commented 4 years ago

do you have any better suggestions ?

moeenio commented 4 years ago

Well, just don't capitalize raw at all (I don't think it needs to be capitalized to be distinguished from a programming language name)

AndiDittrich commented 4 years ago

language list: raw code (not highlighted)

roy-bongers commented 4 years ago

raw code is without any formatting right? What about "Plain text". Sublime / PHPstorm etc also use plain text to indicate code without any formatting.

AndiDittrich commented 4 years ago

thanks, that might be a good label for the language lists. Any idea regarding the raw code button ?

roy-bongers commented 4 years ago

For any other highlighted language plain text would work well but not when you've already selected plain text...

Toggle formatting?

AndiDittrich commented 4 years ago

changed to "Plain text" (EnlighterJS tooltip + Enlighter language list)