PrismJS / live

Prism Live: Lightweight, extensible editable code editors. A work in progress, try it out at your own risk (and report bugs!) :)
https://live.prismjs.com
MIT License
105 stars 28 forks source link

Text becomes weird #12

Open toxicrecker opened 3 years ago

toxicrecker commented 3 years ago

After i remove everything from the textbox and start typing again it becomes very weird as shown in the gif

demo

LeaVerou commented 3 years ago

Hi there, which Prism plugins are you using?

toxicrecker commented 3 years ago

screenshot

Sorry for a very late reply, i was out of town

LeaVerou commented 3 years ago

Thank you. And which language is that on the screenshot? Does the issue occur with other languages? It would really help if you could test without plugins, and then adding them one by one to see which one(s) cause the problem.

toxicrecker commented 3 years ago

The language in the screenshot was python, it occured with other languages too, i removed all the plugins and yes it worked perfectly, tried adding one by one but still it was fixed the issue didn't occured again, i guess i missed any of the plugins that were causing issues but thanks becuase this problem is now gone and i can still use the main plugins that I've been using, also how can i enable the auto closer, for example if i type a " quote it adds another " quote and puts my cursor between the two " quotes, and the last thing when i remove everything from the textarea that old issue doesn't occurs but the number 1 from the plugin line-numbers disappears, how can i make this not disappear?