2
Code


hello/Hello.java
/** A class with the first Java program.
  */
public class Hello {
  public static void main (String args []) { // main program
    System.out.println("Hello, World");      // standard output
  }
}
 


Program text is imported and then maintained in FrameMaker using specific character styles which can be marked up in html <pre> elements:

 

Java syntax coloring can originally be obtained by converting in ProjectBuilderWO to Rich Text using 10 pt Courier and importing by copying into the empty template in FrameMaker . Using the Find panel, the colors can be replaced by pasting the desired character styles.

AppleScript and Shell scripting are used to convert (back) to plain text. It seems too difficult to control white space using xml and xslt .

Parts of the program text are published in FrameMaker — this is not portable to Windows. FrameMaker reliably crashes in the Classic Environment when a publisher is cancelled.

The text can use arbitrary markup and arbitrary pieces can be published.