Skip to main content
edited tags
Link
fuxia
  • 107.1k
  • 38
  • 254
  • 458
added 31 characters in body
Source Link
1.21 gigawatts
  • 1k
  • 3
  • 13
  • 34

I'm writing a guide and putting in code examples. If I use the visual editor the code indentation is lost. It will also take some code and strip it out. If I use the text editor I can't ever useswitch to the visual editor again or the formatting and markup is lost.

The visual editor will also take some code and strip it out. This doesn't happen in other editors like Discourse.

I'm using Geishi syntax highligher.

Is there anyway to prevent this?

I'm writing a guide and putting in code examples. If I use the visual editor the code indentation is lost. If I use the text editor I can't ever use the visual editor.

The visual editor will also take some code and strip it out. This doesn't happen in other editors like Discourse.

I'm using Geishi syntax highligher.

Is there anyway to prevent this?

I'm writing a guide and putting code examples. If I use the visual editor the code indentation is lost. It will also take some code and strip it out. If I use the text editor I can't ever switch to the visual editor again or the formatting and markup is lost.

This doesn't happen in other editors like Discourse.

I'm using Geishi syntax highligher.

Is there anyway to prevent this?

Source Link
1.21 gigawatts
  • 1k
  • 3
  • 13
  • 34

How do I prevent Wordpress from eating my code?

I'm writing a guide and putting in code examples. If I use the visual editor the code indentation is lost. If I use the text editor I can't ever use the visual editor.

The visual editor will also take some code and strip it out. This doesn't happen in other editors like Discourse.

I'm using Geishi syntax highligher.

Is there anyway to prevent this?