#-------------------------------------------------------------------------------
#
#	Name    : Document 
#	Purpose : Display application documents
#	Author  : Steve Drain
#	Licence : 
#	Version : 
#
#-------------------------------------------------------------------------------

#-Options
# HelpPath	ModeED StrongED
 FoldParm1	(fold1start,fold1end,StartOfLine,NoCase)
 FoldParm2	(fold2start,fold2end,StartSpace,NoCase)
 ID_FirstChar	A-Za-z_0-9
 ID_Middle	A-Za-z_0-9
 ID_LastChar	A-Za-z_0-9
#-Comments
SyntaxComment 1
# Type		OneLine
# StartWith	
# EndWith	
End
SyntaxComment 2
Type		OneLine
StartWith	
# EndWith	
End
#-Numbers
SyntaxOptions
 HexPrefix	&
End

#-Group 1	Title	black
SyntaxWords Group1 NoCase StartOfLine EndOfLine
 _
End
#-Group 2	Heading	grey5
SyntaxWords Group2 NoCase StartOfLine EndOfLine
 =
End
#-Group 3	SubHead	grey4
SyntaxWords Group3 NoCase StartOfLine EndOfLine
 -
End
#-Group 4	Fold1	blue
SyntaxWords Group4 NoCase StartOfLine EndOfLine
 [ ]
End
#-Group 5	Fold2	sky
SyntaxWords Group5 NoCase StartOfLine EndOfLine
 { }
End
#-Group 6	Bullet1	grey4
SyntaxWords Group6 NoCase StartSpace EndOfLine
 .
End
#-Group 7	Bold	grey4
SyntaxWords Group7 EndOfID NoCase

End
#-Group 8	Code	grey3
SyntaxWords Group8 NoCase StartOfLine EndOfLine
 >
End

#-Search
Search
 fold1start	"["
 fold1end	"]"
 fold2start	"{"
 fold2end	"}"
 End

#-Keylist
KeyList
 ^[		"["NL"]"NL
^[		"{"NL"}"NL
 ^]		"]"NL"["NL
^]		"}"NL"{"NL
# ^[		"["NL"]"CaretUp
#^[		"{"NL"}"CaretUp
# ^]		"]"NL"["CaretLeft
#^]		"}"NL"{"CaretLeft
# PGDOWN	NIL
# PGUP		NIL
#^PGDOWN	NIL
#^PGUP		NIL
End

#-KeyFunctions
Functions
 HELP		\Smove on to the next primary fold|M\Amove on to the next secondary fold
 ICON		fold_down
 MENU		Next fold    PageDown
 KEY		PGDOWN
 SELECT		GotoNext (fold1start,Text,Line,Case) UnfoldText FoldText OpenFold

 KEY		^PGDOWN
 ADJUST		GotoNext (fold2start,Text,Line,Case) UnfoldText FoldText OpenFold


 HELP		\Smove to the previous primary fold|M\Amove to the previous secondary fold
 ICON		fold_up
 MENU		Prev.fold PageUp
 KEY		PGUP
 SELECT		GotoPrev (fold1start,Text,Line,Case) UnfoldText FoldText OpenFold

 KEY		^PGUP
 ADJUST		GotoPrev (fold2start,Text,Line,Case) UnfoldText FoldText OpenFold


 HELP		\Sclose fold|M\Aclose all folds
 ICON		fold_close
 KEY		KPMIN
 SELECT		CloseFold

 KEY		^KPMIN
 ADJUST		UnfoldText FoldText


 HELP		\Sopen fold|M\Aunfold whole text
 ICON		fold_open
 KEY		KPPLUS
 SELECT		OpenFold

 KEY		^KPPLUS
 ADJUST		FoldText UnfoldText

 HELP		Hnws_join
 ICON		wrap
 KEY		^P
 SELECT		Replace (_wrap,_rwrap,,Noline)

 KEY		^P
 ADJUST		Replace (_wrap,_rwrap,text,Noline)

 HELP		Hnws_splt
 ICON		unwrap
 KEY		^U
 SELECT		unwrap(,70)

 KEY		^U
 ADJUST		unwrap(text,70)

End

#-Shortcuts
Shortcuts
End
