EnlighterJS / Plugin.WordPress

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

backslash(\) is not displaying in post #275

Closed gelodefaultbrain closed 4 years ago

gelodefaultbrain commented 4 years ago

I am displaying a source code on a website I am trying to make

example:

//must be like this
 printf("Hello World\n");

but instead it displays like this

//it displays like this, so annoying please update your plugin
printf("Hello Worldn");

As you can see it removes the backslash ( \ )

why is that man, I am trying to display a source code and the backslash must be included. It is very important especially on a particular programming language. Thank you.

AndiDittrich commented 4 years ago

which editing method do you use ?

gelodefaultbrain commented 4 years ago

Wow that was quick. Can you help me out? I've tried everything. Wait let me screenshot so that It would be clear.

AndiDittrich commented 4 years ago

i cannot reproduce the issue:

Classic Editor image

image

Gutenberg Editor image

image

gelodefaultbrain commented 4 years ago

I am using the Enlighter - Customizable Syntax Highlighter plugin in wordpress Look at this , this is what I mean

image

vs

image

gelodefaultbrain commented 4 years ago

i cannot reproduce the issue:

Classic Editor image

image

Gutenberg Editor image

image

How did you do that? :(

This is my settings by the way I use Atomic cause I like the theme

image

AndiDittrich commented 4 years ago

i believe that you're experiencing this behaviour but currently i assume that it's on of your plugins or your theme which may strip that out...

gelodefaultbrain commented 4 years ago

I don't have any plugin besides elementor like pods, and also elementor syntax highligther but I am not using it :(

AndiDittrich commented 4 years ago

maybe it's elementor which strips it . try to create a post in Gutenberg or classic editor...

the issue doesn't seems to be related to Enlighter...

gelodefaultbrain commented 4 years ago

I tried to change the theme to classic still no luck :(

image

AndiDittrich commented 4 years ago

not the Enlighter theme...your WordPress theme..

gelodefaultbrain commented 4 years ago

May I ask what is Gutenberg? Sorry I'm new to Wordpress, is it a plugin like for displaying source codes too?

AndiDittrich commented 4 years ago

Gutenberg is the new WordPress editor used as of WordPress 5.0

in case you're using Elementor Page Builder you should ask in their forums for support.

maybe you should start with WordPress without page builders..

gelodefaultbrain commented 4 years ago

Hello, omg are you the dev of this plugin? hahaha The plugin is great anyways still no luck :(

AndiDittrich commented 4 years ago

i'm not sure whats going wrong on your site - i assume some kind of environment error.

maybe you can try it in a "clean" environment to identify the issue (theme or plugin).

at the moment, i can only confirm that this issue cannot be reproduced within the testing environment and didn't occur on regular installations

gelodefaultbrain commented 4 years ago

Yep I'll try on other themes, I'll make an update here soon :) thank you :D