/* * [JDisplay.java] * * Summary: Expands HTML JDisplay static macro to display program source code in formatted elaborate format. * * Copyright: (c) 2009-2017 Roedy Green, Canadian Mind Products, http://mindprod.com * * Licence: This software may be copied and used freely for any purpose but military. * http://mindprod.com/contact/nonmil.html * * Requires: JDK 1.8+ * * Created with: JetBrains IntelliJ IDEA IDE http://www.jetbrains.com/idea/ * * Version History: * 1.8 2009-02-06 include go package in ZIP bundle. * undistributed com.mindprod.htmlmacros package to support it. */ package com.mindprod.htmlmacros.macro; import static java.lang.System.*; /** * Expands HTML JDisplay static macro to display program source code in formatted elaborate format. *

* This macro needs the jdisplay package to support it. * * @author Roedy Green, Canadian Mind Products * @version 1.8 2009-02-06 include go package in ZIP bundle. * @see com.mindprod.jdisplayaux.WaysToRender * @since 2009 */ public class JDisplay extends com.mindprod.jdisplayaux.JDisplayMacro { /** * Generate a JDisplay snippet display. The real work is done by the jdisplayaux.JDisplayMacro class * * @param parms from embedded macro * @param quiet true if want output suppressed. * @param verbose @return expanded macro * * @return reference to a JDisplay colourised listing. */ public String expandMacro( String[] parms, final boolean quiet, final boolean verbose ) { if ( !quiet ) { out.print( "J" ); } // use implementation in com.mindprod.jdisplayaux.JDisplayMacro. return super.expandMacro( parms, quiet, verbose ); } } // end JDisplay