Jump to content
  • entries
    658
  • comments
    2,707
  • views
    906,978

Updated batari BASIC mode file


I like to use jEdit when I'm coding my 2600 games. Back in June I revised my mode file, the syntax coloration rules, to make it easier to see graphic images that are represented by binary numbers. I finally got around to implementing this change for my batari BASIC mode file. This is what it looks like:

 

blogentry-3056-0-44587900-1411853729_thumb.png

 

Note: Color choices are under your control, so you'll probably see different colors than I do.

 

To use the mode file you'll need to do 2 things:

  1. install the file
  2. add an entry to the catalog

 

To install the file do this:

  1. select the Utilities menu
  2. select the Settings Directory sub-menu
  3. select the modes folder

 

blogentry-3056-0-51104900-1411854400_thumb.png

 

Depending upon your version of jEdit the file browser will show up in either a window or an embedded side panel:

 

blogentry-3056-0-08419100-1411854408_thumb.png

 

blogentry-3056-0-13909600-1411854418_thumb.png

 

On the Mac it's not a normal Finder window, don't know about other platforms, so you won't be able to drag & drop batari BASIC.xml into it. What you can do from here is:

  • highlight the path (mine is /Users/darrell/Library/jEdit/modes in the window screenshot and /Users/darrellspice/Library/jEdit/modes in the embedded screenshot)
  • Command-C to copy the path
  • switch to Finder (so you see Finder next to the Apple in the top-left corner of your screen)
  • select the Go menu
  • select the Go to Folder... option
  • Command-V to paste the path
  • hit return

 

Now you can drop batari BASIC.xml into this folder. Don't close it yet though as you're not done. You need to edit the catalog to add the following. I've attached my catalog file so you can see it in context.

<MODE NAME="batari BASIC"       FILE="batari BASIC.xml"
                                FILE_NAME_GLOB="*.bas" />
 

Once the catalog and mode file are in place, quit and relaunch jEdit. From then on any file with the extension of .bas will automatically be colorized based on these rules.

 

Since I don't usually delve into batari BASIC, I may have missed adding some words to the coloration rules. If I have, please reply to this blog entry with the word(s) and which of the two groups the word(s) should be in. The group are Special Variables and Keywords. They're currently set up as follows:

 

Special Variables

  • A
  • B
  • C
  • D
  • E
  • F
  • G
  • H
  • I
  • J
  • K
  • L
  • M
  • N
  • O
  • P
  • Q
  • R
  • S
  • T
  • U
  • V
  • W
  • X
  • Y
  • Z
  • BALLHEIGHT
  • BALLX
  • BALLY
  • COLLISION
  • JOY0DOWN
  • JOY0FIRE
  • JOY0LEFT
  • JOY0RIGHT
  • JOY0UP
  • JOY1DOWN
  • JOY1FIRE
  • JOY1LEFT
  • JOY1RIGHT
  • JOY1UP
  • MISSILE0HEIGHT
  • MISSILE0X
  • MISSILE0Y
  • MISSILE1HEIGHT
  • MISSILE1X
  • MISSILE1Y
  • PLAYER0X
  • PLAYER0Y
  • PLAYER1X
  • PLAYER1Y
  • PLAYER2X
  • PLAYER2Y
  • PLAYER3X
  • PLAYER3Y
  • PLAYER4X
  • PLAYER4Y
  • PLAYER5X
  • PLAYER5Y
  • PLAYFIELD
  • PFREAD
  • SCORE
  • SCORECOLOR
  • SWITCHBW
  • SWITCHLEFTB
  • SWITCHRESET
  • SWITCHRIGHTB
  • SWITCHSELECT
  • RAND

 

keywords

  • &&
  • ||
  • ASM
  • BANK
  • CONST
  • DATA
  • DIM
  • DRAWSCREEN
  • ELSE
  • END
  • FLIP
  • FOR
  • FUNCTION
  • GOSUB
  • GOTO
  • IF
  • INCLUDE
  • INCLUDESFILE
  • LET
  • NEXT
  • NONE
  • OFF
  • ON
  • OPTIMIZATION
  • PFCLEAR
  • PFHLINE
  • PFPIXEL
  • PFSCROLL
  • PFVLINE
  • PLAYER0
  • PLAYER1
  • PLAYER2
  • PLAYER3
  • PLAYER4
  • PLAYER5
  • PLAYER6
  • PLAYER7
  • PLAYER8
  • PLAYER9
  • PLAYFIELD
  • RETURN
  • ROMSIZE
  • SET
  • SIZE
  • SMARTBRANCHING
  • SPEED
  • THEN

 

batari BASIC mode file:

batari BASIC.xml.20140927.zip

 

my catalog file for reference:

catalog.zip

JEDIT NAVIGATION
<PREVIOUS> <INDEX> <NEXT>

  • Like 1

3 Comments


Recommended Comments

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...