Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #31954

Re: Microsoft Word as a Java-IDE

From Jeff Higgins <jeff@invalid.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Microsoft Word as a Java-IDE
Date 2015-07-04 18:07 -0400
Organization A noiseless patient Spider
Message-ID <mn9lit$kl5$1@dont-email.me> (permalink)
References <IDE-20150703192711@ram.dialup.fu-berlin.de>

Show all headers | View raw


On 07/03/2015 01:49 PM, Stefan Ram wrote:
>    I usually write my course notes with Microsoft® Word, so
>    I wrote a small VBA macro to execute the Java programs
>    from within Microsoft Word.
>
>    For example, I might write:
>
>    .--------------------------------------------------------------------
>    |
>   *|   lautet »%n«. Das folgende Programm gibt zwei Zeilen aus
>   *|   und schließt diese ordentlich mit einem Zeilenabschluß ab.
>   *|
>   *|   Main.java
>   *|
>   *|         public class Main
>   *|         { public static void main( final java.lang.String[] args )
>   *|           { java.lang.System.out.printf( "a%nb%n" ); }}
>    |
>    |   Das voranstehende Programm ist gleichbedeutend zu dem
>    |   folgenden Programm.
>    |
>
>    Now, I press Ctrl-O with the cursor in any of the lines
>    marked with an asterisk. It takes about 1 second and the
>    document then looks as follows:
>
>    .--------------------------------------------------------------------
>    |
>    |   lautet »%n«. Das folgende Programm gibt zwei Zeilen aus
>    |   und schließt diese ordentlich mit einem Zeilenabschluß ab.
>    |
>    |   Main.java
>    |
>    |         public class Main
>    |         { public static void main( final java.lang.String[] args )
>    |           { java.lang.System.out.printf( "a%nb%n" ); }}
>    |
>    |   transcript
>    |
>    |         a
>    |         b
>    |
>    |   Das voranstehende Programm ist gleichbedeutend zu dem
>    |   folgenden Programm.
>    |
>
>    A word document might contain several Java-Sources, Ctrl-O
>    will use the one that is »next to the cursor« (the next
>    document after the line of the cursor [= the text caret]).
>
>    Before I had this, I sometimes made changes to the source code
>    and then forgot to check whether it still compiles with the
>    intended semantics. Now I can check this more easily and so
>    I check it more often.
>
>    When the compiler produces an error message, this is also
>    inserted under »transcript«. If there already is a
>    »transcript« below a program, the new transcript will
>    replace the existing one.
>
>    One might extend this in the direction of »literal programming«,
>    where Word will not only execute »main« methods but there
>    also is a means to »execute« freestanding parameterless
>    methods or find and run the unit-tests for a method.
>

See 6.2 Comparison of Programming Notations, page 34

Unicode Nearly Plain-Text Encoding of Mathematics
<http://www.unicode.org/notes/tn28/UTN28-PlainTextMath-v3.pdf>

Back to comp.lang.java.programmer | Previous | Next | Find similar | Unroll thread


Thread

Re: Microsoft Word as a Java-IDE Jeff Higgins <jeff@invalid.invalid> - 2015-07-04 18:07 -0400

csiph-web