1. CODE-GENIE

--part1_5a.d37d2de.2a441186_boundary

Hello all.

I have something that I hope will prove at least somewhat useful.  It is my 
syntax file for Code Genie.  I made some changes to it.  That might sound 
pretty normal..  but there is one thing that I think you will find very 
useful...
The knowledge of Win32Lib.  I added support for Win32Lib based on 
documentation for 0551  I know there are a few errors..  a few places where 
things repeat.
And if you dont like the colors..  Well, I randomly picked each color for the 
Win32Lib procedure, functions, ect. They are categorized from documentation.

Place this file in:
<CODE GENIE DIR>\cgsyn\

I hope you enjoy it!

Robert Szalay

--part1_5a.d37d2de.2a441186_boundary
Content-Type: text/plain; name="Euphoria.cgsyn"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline; filename="Euphoria.cgsyn"

# Euphoria syntax file for Code-Genie 3.0

BlockEnd     line_comment  \\\n
BlockNotEnd  line_comment  \\n
BlockStart   line_comment  --
BlockEnd     line_comment  \n

# Comments
Format       line_comment  i
FgColor      line_comment  #bb8040

# Reserved Words
KeywordGroup  reserved_words  if then else elsif end while do for or xor and=
 exit to by not
Format   reserved_words  b
FgColor  reserved_words  #0000aa
               =20
# Numbers
Number       numbers

FgColor      numbers  #FF00FF
#0000ff
        =20
# Strings
BlockEnd     string1  \\\\
BlockNotEnd  string1  \\"
BlockEnd     string1  "
BlockStart   string1  "
#BlockEnd     string1 =20
FgColor      string1  #0000ff

# Character Literals
BlockEnd     string2  \\\\
BlockNotEnd  string2  \\'
BlockEnd     string2  '
BlockStart   string2  '
#BlockEnd     string2 =20
FgColor      string2  #3380ff

# Include
KeywordGroup  builder_extensions  include as
Format   builder_extensions  b
FgColor  builder_extensions  #000000

# Compiler Directives
KeywordGroup  metawords  with without trace warning profile profile_time
FgColor  metawords  #ff0000
               =20
# Datatypes
KeywordGroup  datatype  integer object sequence atom type constant
FgColor  datatype  #008000
          =20
# Calling and Routines
KeywordGroup  routines  global function procedure routine_id c_proc c_func r=
eturn
                        call call_proc call_func define_c_func define_c_proc=
 define_c_var
                       =20
Format   routines b
FgColor  routines  #008080
                     =20
# Built-In
KeywordGroup  inbuilt  getc open close length find match append prepend
                       abort and_bits arctan clear_screen command_line compa=
re
                       cos date equal floor get_key get_pixel getenv gets lo=
g machine_func
                       machine_proc mem_copy mem_set not_bits open_dll or_bi=
ts
                       peek peek4s peek4u PI pixel platform poke poke4 posit=
ion
                       power print printf puts rand remainder repeat routine=
_id
                       sin sprintf sqrt system system_exec tan time xor_bits
Format   inbuilt b

# Standard Library
KeywordGroup  stdlib  all_palette allocate allocate_low allocate_string allo=
w_break arccos arcsin
                      atom_to_float32 atom_to_float64 bits_to_int bk_color b=
ytes_to_int
                      call_back chdir check_break crash_file crash_message c=
urrent_dir cursor
                      custom_sort dir display_image display_text_image dos_i=
nterrupt draw_line
                      ellipse float32_to_atom float64_to_atom flush free fre=
e_console
                      free_low get get_active_page get_all_palette get_bytes=
 get_display_page
                      get_mouse get_position get_screen_char get_vector grap=
hics_mode instance
                      int_to_bits int_to_bytes lock_file lock_memory lower m=
essage_box
                      mouse_events mouse_pointer palette polygon prompt_numb=
er prompt_string
                      put_screen_char read_bitmap register_block reverse sav=
e_bitmap save_image
                      save_screen save_text_image scroll seek set_active_pag=
e set_display_page
                      set_rand set_vector sleep sort sound sprint text_color=
 text_rows tick_rate
                      unlock_file unregister_block upper use_vesa value vide=
o_config wait_key
                      walk_dir where wildcard_file wildcard_match wrap
                     =20
Format   stdlib b
FgColor  stdlib #808080

# Win32Lib Constants
KeywordGroup  win32lib_const=09CCexflags CCflags CCwinstyle comctl32 comdlg3=
2 Default gdi32
=09=09=09=09=09=09=09=09kernel32 riched32 shell32 user32 w32AltEdge w32Edge=20=
w32MsgNum
=09=09=09=09=09=09=09=09Win32LibVersion winmm32

Format=09win32lib_const b
FgColor=09win32lib_const #801080

# Win32Lib Controls
KeywordGroup  win32lib_cont=09=09Bitmap CheckBox closeWindow Combo ComboBoxE=
x CText DefPushButton
=09=09=09=09=09=09=09=09DropDownList EditText Group HScroll HTrackBar VTrack=
Bar Icon
=09=09=09=09=09=09=09=09List ListView LText Menu MenuItem MleText MonthCalen=
dar
=09=09=09=09=09=09=09=09PictureButton Pixmap Popup Printer ProgressBar PushB=
utton Radio
=09=09=09=09=09=09=09=09ReBar ReBarBand RichEdit RText Screen SepButton setC=
ontrolBlocks
=09=09=09=09=09=09=09=09SimpleCombo SortedCombo SortedList StatusBar TabCont=
rol TabItem
=09=09=09=09=09=09=09=09ToggleButton TogglePicture ToolBar TreeView TriCheck=
Box UpDown
=09=09=09=09=09=09=09=09VScroll Window
=09=09=09=09=09=09=09=09
Format=09win32lib_cont b
FgColor=09win32lib_cont #BB8080

# Win32Lib Degraded Routines and Constants
KeywordGroup  win32lib_deg=09=09ClickPointerLeft DragPointerTo getExtent Get=
PointerPosn getSize
=09=09=09=09=09=09=09=09moveWindow SetPointerPosn setPosition

Format=09win32lib_deg b
FgColor=09win32lib_deg #8080FF

# Win32Lib Dialogs
KeywordGroup  win32lib_dlg=09=09getColorDialog getFindText getFontDialog get=
OpenFileName
=09=09=09=09=09=09=09=09getPageSetup getReplaceText getSaveFileName

Format=09win32lib_dlg b
FgColor=09win32lib_dlg #8080DE

# Win32Lib Edit Control
KeywordGroup  win32lib_edit=09=09clear copy cut LimitText paste undo

Format=09win32lib_edit b
FgColor win32lib_edit #8C9469

# Win32Lib Events
KeywordGroup  win32lib_evnts=09doEvents onChange onClick onClose onDestroy o=
nDragAndDrop
=09=09=09=09=09=09=09=09onEvent onGotFocus onKeyDown onKeyPress onKeyUp onLo=
stFocus
=09=09=09=09=09=09=09=09onMouse onOpen onPaint onResize onScroll onTimer ret=
urnValue
=09=09=09=09=09=09=09=09setHandler setMouseClick

Format=09win32lib_evnts b
FgColor win32lib_evnts #B34D3E

# Win32Lib Fonts
KeywordGroup  win32lib_fonts=09getCharExtent getFontMetric getFontSize getTe=
xtExtent
=09=09=09=09=09=09=09=09setDefaultFont setFont setFontWeight setHintFont set=
PenPos
=09=09=09=09=09=09=09=09setTextAlign setTextColor showChars wPrint wPrintf w=
Puts

Format=09win32lib_fonts b
FgColor=09win32lib_fonts #FFCC00

# Win32Lib Graphics
KeywordGroup  win32lib_graph=09bitBlt copyBlt copyToBitmapFile createDIB dra=
wArc drawBitmap drawChord
=09=09=09=09=09=09=09=09drawEllipse drawLine drawPie drawPolygon drawRectang=
le drawRoundRectangle
=09=09=09=09=09=09=09=09getPixel loadBitmapFromFile repaintRect repaintWindo=
w rgb setBackColor
=09=09=09=09=09=09=09=09setPenBkColor setPenBkMode setPenColor setPenROP2 se=
tPenStyle setPenWidth
=09=09=09=09=09=09=09=09setPixel textToBitmap transBlt
=09=09=09=09=09=09=09=09
Format=09win32lib_graph b
FgColor=09win32lib_graph #4D4D1A

# Win32Lib Image Lists
KeywordGroup  win32lib_img=09=09addDIB addEuBmp addIcon addXmp

Format=09win32lib_img b
FgColor=09win32lib_img #545454

# Win32Lib List Control
KeywordGroup  win32lib_lstcnt=09addItem deleteItem eraseItems getCount getIn=
dex getItem getMultIndices
=09=09=09=09=09=09=09=09getMultItems insertItem setIndex w32AllItems

Format=09win32lib_lstcnt b
FgColor=09win32lib_lstcnt #804D80

# Win32Lib ListView Control
KeywordGroup  win32lib_lvctrl=09addLVItem extractIcon getLVAllText getLVCoun=
t getLVItem getLVItem1Param
=09=09=09=09=09=09=09=09getLVItemText getLVSelected getLVSelectedCount getLV=
SelectedText
=09=09=09=09=09=09=09=09insertListViewColumn insertListViewItem setColumn se=
tImageList
=09=09=09=09=09=09=09=09setListViewItem setLVItemText struct_LVDISPINFO stru=
ct_LVFINDINFO
=09=09=09=09=09=09=09=09struct_LVITEM
=09=09=09=09=09=09=09=09
Format=09win32lib_lvctrl b
FgColor=09win32lib_lvctrl #E61A80

# Win32Lib Low Level Routines
KeywordGroup  win32lib_low=09=09getDC killTimer registerw32Library releaseDC=
 sendMessage setTimer w32Func
=09=09=09=09=09=09=09=09w32Proc

Format=09win32lib_low b
FgColor=09win32lib_low #FF1AB3

# Win32Lib MonthCalendar Control
KeywordGroup  win32lib_mcal=09=09formatDate getSelectedDate getSelectedDateR=
ange setMaxDateRange
=09=09=09=09=09=09=09=09setMonthColor setSelectedDate setSelectedDateRange
=09=09=09=09=09=09=09=09
Format=09win32lib_mcal b
FgColor=09win32lib_mcal #004D80

# Win32Lib Mouse
KeywordGroup  win32lib_mouse=09captureMouse clickPointerLeft createMousePoin=
ter dragPointerTo getPointerPos
=09=09=09=09=09=09=09=09releaseMouse setMousePointer setPointerPos

Format=09win32lib_mouse b
FgColor=09win32lib_mouse #801A4D

# Win32Lib Printing
KeywordGroup  win32lib_print=09endDoc endPage getPrinter releasePrinter star=
tDoc startPage

Format=09win32lib_print b
FgColor=09win32lib_print #87B757

# Win32Lib Resources
KeywordGroup  win32lib_res=09=09deleteObject findTrackedObject ForPaint ForP=
rogram trackObject

Format=09win32lib_res b
FgColor=09win32lib_res #616161

# Win32Lib RichEdit Control
KeywordGroup  win32lib_rich=09=09findText getRichText getSelection getStream=
 putStream setAlignment
=09=09=09=09=09=09=09=09setBullet setIndent setIndex setTabs
=09=09=09=09=09=09=09=09
Format=09win32lib_rich b
FgColor=09win32lib_rich #B99C4F

# Win32Lib Scroll Control
KeywordGroup  win32lib_scroll=09getHScrollPos getScrollChange getScrollPos g=
etScrollRange getVScrollPos
=09=09=09=09=09=09=09=09setHScrollPos setScrollChange setScrollPos setScroll=
Range setVScrollPos
=09=09=09=09=09=09=09=09
Format=09win32lib_scroll b
FgColor=09win32lib_scroll #FF8080

# Win32Lib TreeView Control
KeywordGroup  win32lib_tree=09=09addTVItem expandItem getTVIndex getTVParent=
 getTVSelectedText getTVText
=09=09=09=09=09=09=09=09hitTestTV
=09=09=09=09=09=09=09=09
Format=09win32lib_tree b
FgColor=09win32lib_tree #800025

# Win32Lib Types
KeywordGroup  win32lib_types=09int seq

Format=09win32lib_types b
FgColor=09win32lib_types #C5E0B5

# Win32Lib Updown Control
KeywordGroup  win32lib_updown=09setBuddy

Format=09win32lib_updown b
FgColor=09win32lib_updown #801A1A

# Win32Lib Utilities
KeywordGroup  win32lib_util=09=09abortErr addStyle attachCleanUp copyFile cr=
eateDirectory deleteFile
=09=09=09=09=09=09=09=09detachCleanUp fetch_CHARFORMAT fetch_SYSTEMTIME getH=
andles getTempFile
=09=09=09=09=09=09=09=09getTempPath hitTestTT moveFile playSound removeStyle=
 setStartupFont
=09=09=09=09=09=09=09=09setWarning shellExecute shellExecuteEx struct_CHARFO=
RMAT struct_SYSTEMTIME
=09=09=09=09=09=09=09=09struct_TOOLINFO warnErr

# Win32Lib XPM
KeywordGroup  win32lib_xpm=09=09createXpm createXpmFromBmpFile setTransparen=
tColor xmpToEuBmp xmpToPixmap

Format=09win32lib_xpm b
FgColor=09win32lib_xpm #4DB380

# Win32Lib Attributes
KeywordGroup  win32lib_attrib=09addToBand classDefaults ClientToScreen creat=
e createEx destroy findChildren
=09=09=09=09=09=09=09=09findParent findParentWindow getClientPoint getClient=
Rect getControlInfo
=09=09=09=09=09=09=09=09getCtlSize getHandle getHint getId getMousePos getMo=
useRelPos getNumber
=09=09=09=09=09=09=09=09getPosition getRect getSelectedText getSelf getSysCo=
lor getSystemMetrics
=09=09=09=09=09=09=09=09getTabItem getText getWindowInfo getWindowRect isChe=
cked isEnabled
=09=09=09=09=09=09=09=09isMaximized isMinimized isScreenPointIn isVisible ma=
nageToolTip moveZOrder
=09=09=09=09=09=09=09=09openDialog openWindow popup registerHotKey ScreenToC=
lient setAppName
=09=09=09=09=09=09=09=09setBitmap setCheck setClientRect setCtlSize setEnabl=
e setFocus setHint
=09=09=09=09=09=09=09=09setHintEx setIcon setPixmap setRect setSelectedText=20=
setText setVisible
=09=09=09=09=09=09=09=09setWindowBackColor validId WinMain
=09=09=09=09=09=09=09=09
Format=09win32lib_attrib b
FgColor=09win32lib_attrib #808080

# ? print
Operator qprint ?
Format   qprint bi=20
                     =20
# Sequence Literals
Operator sequence {}
Format   sequence b=20
FgColor  sequence  #c02000

# Slices Literals
Operator slice []
Format   slice b
FgColor  slice  #20A0A0

Nest line_comment
Nest numbers
Nest string1
Nest string2
Nest reserved_words
Nest builder_extensions
Nest metawords
Nest datatype=20
Nest inbuilt
Nest stdlib

Nest win32lib_const
Nest win32lib_cont
Nest win32lib_deg
Nest win32lib_dlg
Nest win32lib_edit
Nest win32lib_evnts
Nest win32lib_fonts
Nest win32lib_graph
Nest win32lib_img
Nest win32lib_lstcnt
Nest win32lib_lvctrl
Nest win32lib_low
Nest win32lib_mcal
Nest win32lib_mouse
Nest win32lib_print
Nest win32lib_res
Nest win32lib_rich
Nest win32lib_scroll
Nest win32lib_tree
Nest win32lib_types
Nest win32lib_updown
Nest win32lib_util
Nest win32lib_xpm
Nest win32lib_attrib

Nest sequence=20
Nest routines=20
Nest slice
Nest qprint

# eof
--part1_5a.d37d2de.2a441186_boundary--

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu