Vim has :TOhtml which exports an HTML version of the current buffer and renders any syntax highlighting with CSS. Emacs and the WebKit-based editors (Atom, Sublime Text) probably have something similar.
On Tue, Nov 3, 2015 at 10:00 AM, chris burke <cbu...@jsoftware.com> wrote: > The J6 export script should work fine in J8, so it could be ported as an > addon. I think the reason why it had not been ported is because of the > complex configuration code. However, the configs should now be put in a > plain text file like the rest of the J8 configs, and the remaining code > would be easy to port. BTW, the utility did use CSS for styling. > > I don't see any problem with using pandoc, in fact the joxygen addon > already requires that. > > On 3 November 2015 at 06:41, John Baker <bakerj...@gmail.com> wrote: > > > Many years ago there was an HTML utility in J 6.x that rendered J code as > > HTML. > > > > As I recall this utility did not use CSS which limited its utility and it > > was eventually dropped. I am interested in converting J code to HTML for > > inclusion in blog posts. > > > > I built a special version of pandoc: > > > > > > > https://bakerjd99.wordpress.com/2012/09/20/pandoc-based-j-syntax-highlighting/ > > > > That achieved this but I don't like using another programming language > for > > what is essentially a J utility. > > > > Has any recent work been done along these lines? > > > > -- > > John D. Baker > > bakerj...@gmail.com > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm