In a recent thread I have been perhaps overly pessimistic about how easy it is 
to get the Gtk IDE working on Windows using the latest JHS installer available 
from the beta page. http://www.jsoftware.com/beta.htm

Here are some instructions that work for me on Win7 32-bit. 

Start by renaming/deleting your current j701 folder if you have previously 
installed the beta, and renaming/deleting your j701-user folder.

NB. Run installer to install J.

NB. Get the Gtk+ binaries
  NB. This is the only step that differs from Linux
  NB. The easiest way to do this is to copy them from the earlier
  NB. Gtk IDE release - j7gtkwin32.zip  available here:
  NB. http://www.jsoftware.com/jwiki/System/Beta/Gtk%20IDE
  NB. (you only need the j7w/gtk folder tree)
  NB. Copy gtk directory tree from j7w/gtk to j701/gtk

NB. Fix/Edit j701/bin/profile.ijs to handle snapshots
  NB. Applies to Linux too!
  NB. This is not strictly necessary to get the Gtk IDE to run, 
  NB. but will prevent errors when you save scripts using the IDE.

  NB. After line: 
    break=. user,'/break'
  NB. Add line: 
    snap=.  user,'/snap'
  NB. Add an entry for "snap" in the line starting: 
    id=. ;:'addons bin ... 


NB. Start jconsole (jcon701 icon in j701 folder in Start menu).

   require 'pacman'
NB. Update local JAL info with latest JAL server info 
   'update' jpkg ''
NB. Install gui/gtk and ide/gtk addons
   'install' jpkg 'search' jpkg 'gtk'  
NB. Optionally install plot/viewmat addons etc
   'install' jpkg 'search' jpkg 'graphics'

NB. Start Gtk IDE
   load 'ide/gtk'

NB. You can create a shortcut to start the IDE automatically 
NB. using the Target: "<path>\j701\bin\jconsole.exe" ide/gtk

The Edit window should have full syntax highlighting when editing ijs scripts. 
If you want to try syntax highlighting in the Term window (ijx session) as 
well, save the following xml as j701-user/config/term.xml and restart the IDE.

<?xml version="1.0" encoding="UTF-8"?>
<style-scheme id="term" _name="term (syntax highlights)" version="1.0">

  <!-- Palette -->
  <color name="blue"             value="#0000FF"/>
  <color name="light-blue"       value="#4444FF"/>
  <color name="papaya"           value="#FFEFD5"/>
  <color name="high"             value="#E5E5E5"/>
  <color name="bordeaux"         value="#A52A2A"/>
  <color name="cyan"             value="#008A8C"/>
  <color name="grey"             value="#888888"/>
  <color name="green"            value="#009900"/>
  <color name="green-blue"       value="#009966"/>
  <color name="light-green"      value="#DDFCDE"/>
  <color name="light-yellow"     value="#FCFCDD"/>
  <color name="light-gray"       value="#F5F5F5"/>
  <color name="dark-orange"      value="#DD9900"/>
  <color name="darker-red"       value="#DD4444"/>
  <color name="purple"           value="#A020F0"/>
  <color name="violet"           value="#6A5ACD"/>
  <color name="dark-blue"        value="#0057AE"/>
  <color name="dark-red"         value="#800000"/>
  <color name="dark-green"       value="#008000"/>
  <color name="brown"            value="#B07E00"/>

  <style name="text"              foreground="blue" background="light-yellow"/>
  <style name="selection"         foreground="#white" background="light-blue"/>
  <style name="current-line"      background="high"/>

  <!-- Bracket Matching -->
  <style name="bracket-match"     bold="true"/>
  <style name="bracket-mismatch"  background="red" bold="true"/>

  <!-- Search Matching -->
  <style name="search-match"      background="#yellow"/>

  <!-- Comments -->
  <style name="def:comment"       foreground="grey" italic="true" bold="false"/>
  
  <!-- Constants -->
  <style name="def:string"        foreground="blue"/>

  <!-- Others -->
  <style name="def:note"          foreground="#BF0303" background="#F7E7E7" 
bold="true" italic="false"/>
  <style name="def:error"         foreground="#red" underline="true"/>
  <style name="def:underlined"    underline="true"/>

  <!-- J Language specific styles -->
  <style name="j:adverb"      foreground="darker-red"/>
  <style name="j:comment"     use-style="def:comment"/>
  <style name="j:conjunction" foreground="dark-orange"/>
  <style name="j:control"     foreground="#red"/>
  <style name="j:error"       foreground="#magenta"/>
  <style name="j:exparg"      foreground="bordeaux" italic="true" />
  <style name="j:global"      foreground="bordeaux"/>
  <style name="j:local"       foreground="purple"/>
  <style name="j:noun"        foreground="blue" bold="true"/>
  <style name="j:noundef"     foreground="blue"/>
  <style name="j:number"      foreground="purple"/>
  <style name="j:parens"      foreground="#black"/>
  <style name="j:primitive"   foreground="cyan"/>
  <style name="j:string"      use-style="def:string"/>
  <style name="j:verb"        foreground="green-blue"/>

</style-scheme>

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to