tags:

views:

233

answers:

2

Is there an easy to use "what-you-see-is-what-you-get" editor for Pod available?

I'm not that used to the Pod syntax yet so having the option of writing the Pod and immediatly see what the output would look like will help a lot. Ideally this editor would have some kind of "code-completion" to help with the correct syntax.

Is there an editor like this?

+2  A: 

No, at least not that I've ever heard whisper of. Pod is a very simple form of markup; it shouldn't take long to learn it.

That said, any decent text editor should be configurable to recognize Pod directives and apply syntax highlighting to them. If your editor does code-completion of keywords you'd get that too. (Note: code-completion wouldn't apply to a hypothetical WYSIWYG editor.)

As for seeing the output, there's no standard way of rendering Pod. It can be rendered as plain text, HTML, or anything else for which someone was written a translator. Depending on your text editor you could add a "user command" to translate the current document and show it in an appropriate viewer. For example, run it through pod2html and open the resulting page in Firefox.

Edit: The Hints for Writing Pod section of perlpod says

If you're more familiar with writing in HTML than with writing in Pod, you can try your hand at writing documentation in simple HTML, and converting it to Pod with the experimental Pod::HTML2Pod module

which would allow you to use a WYSIWYG HTML editor to write documentation. (At least in principle; much would depend on what kind of output the editor produced.)

Michael Carman
HTML isn't WYSIWYG though. What you see is what you see and not what other people might see. :)
brian d foy
Yea, that could work I guess, but HTML2Pod says:"Try to avoid using a WYSIWYG HTML editor, as they often produce scary source"... which more or less puts me in the same position. If I have to handcode the syntax anyway, I might aswell do it in perldoc right away.Anyway, it wasn't anything major, so I've scrapped the idea. Thanks for the help though.
Fredrik
A: 

There is unfinished App::Wx::PodEditor on CPAN.

Alexandr Ciornii
http://search.cpan.org/perldoc/App::Wx::PodEditor might have been a better link.
Brad Gilbert