Getting a list of file names into an INP file Place the cursor on a word and press Alt+. For example, typing 'vie' and then pressing Ctrl-b produces the following options: Keywords can be completed by pressing Ctrl-b. Here's a screen shot showing three panes with the left pane being then one that is worked on. For example, when writing an INP file, it's often useful to grab INP text from parts of other files.
#DELETING ENTIRE LINES JEDIT WINDOWS#
Panes are similar to windows but they do not overlap they are very useful when viewing and working with more than one file at a time. Thus remembering the syntax of the emission profile as well as the keywords is not necessary. For example, to insert an emission profile, place the cursor at the position where the emission profile is to be inserted and then click on the XInsert “Emission profile(s)” entry doing so displays the standard emission profiles as follows: Clicking on the items of the XInsert menus runs macros defined in the XInsert XML file (). INP files can be swiftly composed using the XInsert hierarchical menus.
It is useful to go through these key bindings to get a feel for what is possible. Suggested key bindings are:Ĭ+DownArrow Move down 9 lines (macro down_9) The highlighted commands that begin with the text TA are macros written specifically for TOPAS. Key bindings can be easily changed from the menu option “Utilities/Global Options”: Follows the instructions which should take a minute. From jEdit run the macro INP-Setup.BSH from the jEdit menu “Macros/Run Other Macro”. Inp.jedit-scheme Colours for syntax highlighting Inp_mode.xml INP Kewyords used in syntax highlighting Inp-setup.bsh Run this macro using "Macros/Run Other Macro" templates, Durham menus then go to Johns jEdit page).
#DELETING ENTIRE LINES JEDIT FULL#
If you want a full jEdit installation with a few more things set up (e.g. The following files are necessary for editing INP files, they are zipped up here jedit.zip. There are over 100 examples referenced and each can be speedily run by clicking on the TA-arrow-icon, switching to TOPAS and then clicking in the TOPAS Run icon. Example INP files can be loaded into jEdit by clicking on the example INP file name. Clicking on these file names loads the file into jEdit. Notice that text files read by TOPAS is shown under the Help tab.
It's at present displaying an XML file that is TOPAS specific. On the left of the screen is the Plugin called XInsert. First Timers should take a few minutes to go through the jEdit menus. Notice the three buttons on the top left of the screen (TA, TA-Arrow, New-INP) these are TOPAS specific buttons which has been added to jEdit they communicate with TOPAS. Here's a screen shot of jEdit with an INP file loaded. After a few dozen macros the editing of INP files and the running of TOPAS becomes much easier. Another macro can be written to create a new TOPAS input file. For example a macro can be written to load the TOPAS technical reference. JEdit macros allow communication between other programs and itself. Fortunately and for a particular individual, much of the functionality is not needed and after some use only a small subset of functionality is actually used thus don't be intimidated by the many options. A Plugin is an add-on that extends functionality. We will concentrate on jEdit it is full featured with macros, panes, syntax highlighting, column editing, automatic updating of changed files and many Plugins. Editors such as jEdit and NotePad++ can be fully customized. A good editor can save weeks of time over a year.