# file    : context.properties
# version : 18 august 2003
# author  : Hans Hagen / PRAGMA ADE / www.pragma-ade.com

# there but not yet working:

# comment.box.start.tex=\n\\starthiding\n
# comment.box.middle.tex=
# comment.box.end.tex=\n\\stophiding\n

# comment.box.start.xml=<!--
# comment.box.middle.xml=
# comment.box.end.tex=-->

# comment.block.start.xml=<!--\s
# comment.block.end.xml=\s-->

# calltip.*.end.definition=%

# This is the new default for windows 2000+ per 1.56:
#
# if PLAT_WIN
# 	find.command=findstr /n /s $(find.what) $(find.files)
#
# uncomment this (or move to user properties) if needed:
#
# if PLAT_WIN
#   find.command=fgrep -G -n $(find.what) $(find.files)

# ConTeXt: suffixes (really needed)

file.patterns.tex=
file.patterns.latex=
file.patterns.context=*.tex;*.tui;*.tuo;*.sty;

# ConTeXt : keywords (if not yet loaded already)

import cont-cz-scite
import cont-de-scite
import cont-en-scite
import cont-nl-scite
import cont-ro-scite
import cont-xx-scite
import metafun-scite
import latex-scite

# Example : patterns

file.patterns.xml=
file.patterns.example=*.xml;*.xsl;*.xsd;*.fo;*.exa;*.rlb;*.rlg;*.rlv;*.rng;*.xfdf;*.xslt;*.dtd

filter.example=eXaMpLe|$(file.patterns.example)|

lexer.$(file.patterns.example)=xml

# Commands: some scripts

if PLAT_WIN
    name.context.console=cmd
    name.context.gsview=gsview32.exe
    name.context.acrobat=

if PLAT_GTK
    name.context.console=cmd
    name.context.gsview=gs
    name.context.acrobat=acrobat

name.context.concheck=texmfstart concheck.rb
name.context.texexec=texmfstart texexec.pl --autopdf
name.context.texshow=texmfstart texshow.pl
name.context.texutil=texmfstart texutil.pl
#name.context.examplap=texmfstart --file=examplap.pdf --program=context --browser
name.context.examplap=texmfstart --browser --file=http://localhost:8061/exalogin
name.context.showcase=texmfstart --file=showcase.pdf --program=context

name.example.xmlcheck=tidy -quiet -utf8 -xml -errors
name.example.examplez=texmfstart examplez.rb

name.metafun.mptopdf=texmfstart mptopdf.pl

#   name.context.exampler=cmd /c start /min "Local Example Service" texmfstart exampler.rb --continue
#   name.context.exampler=texmfstart exampler.rb --continue > /tmp/exampler.log &

if PLAT_WIN
    name.context.exampler=cmd /c start /min "Local Example Service" texmfstart exaserver.rb --start --port=8061

if PLAT_GTK
    name.context.exampler=texmfstart exaserver.rb --start --port=8061 > /tmp/exampler.log &

# Commands: help info, e:\websites\www.pragma-ade.com\showcase.pdf / todo: manuals

command.help.$(file.patterns.context)=$(name.context.texshow) $(CurrentWord)
command.help.$(file.patterns.example)=
command.help.$(file.patterns.metafun)=

command.help.subsystem.$(file.patterns.context)=2

# Commands: tools menu extensions

context.distribution.writable=1

# for the moment using subsystem 1 for perl jobs is better (otherwise dangling jobs)

command.save.before=1

# hard coded compile / build / go

command.compile.$(file.patterns.context)=$(name.context.concheck) $(FileNameExt)
command.compile.$(file.patterns.metafun)=
command.compile.$(file.patterns.example)=$(name.example.xmlcheck) $(FileNameExt)
command.compile.*.fo=$(name.example.xmlcheck) $(FileNameExt)

#command.compile.subsystem.$(file.patterns.context)=1
#command.compile.subsystem.$(file.patterns.metafun)=1
#command.compile.subsystem.$(file.patterns.example)=1

command.build.$(file.patterns.context)=$(name.context.texexec) --pdf $(FileNameExt)
# command.build.$(file.patterns.metafun)=$(name.context.texexec) --pdf --mptex $(FileNameExt)
command.build.$(file.patterns.metafun)=$(name.metafun.mptopdf) $(FileNameExt)
command.build.$(file.patterns.example)=$(name.context.texexec) --pdf --xml   $(FileNameExt)
command.build.*.fo=$(name.context.texexec) --pdf --autopdf --xml --use=foxet $(FileNameExt)

command.build.subsystem.$(file.patterns.context)=1
command.build.subsystem.$(file.patterns.metafun)=1
command.build.subsystem.$(file.patterns.example)=1
command.build.subsystem.*.fo=1

command.go.$(file.patterns.context)=$(FileName).pdf
command.go.$(file.patterns.metafun)=$(FileName).pdf
command.go.$(file.patterns.example)=$(FileName).pdf
command.go.*.fo=$(FileName).pdf

command.go.subsystem.$(file.patterns.context)=2
command.go.subsystem.$(file.patterns.metafun)=2
command.go.subsystem.$(file.patterns.example)=2
command.go.subsystem.*.fo=2

# 0 : syntax checking

command.name.0.$(file.patterns.context)=Check TeX File
command.name.0.$(file.patterns.metafun)=
command.name.0.$(file.patterns.example)=Check XML File

command.0.$(file.patterns.context)=$(name.context.concheck) $(FileNameExt)
command.0.$(file.patterns.metafun)=
command.0.$(file.patterns.example)=$(name.example.xmlcheck) $(FileNameExt)

# 1 : normal processing

command.name.1.$(file.patterns.context)=Process TeX file
command.name.1.$(file.patterns.metafun)=Process METAPOST File
command.name.1.$(file.patterns.example)=Process XML File

command.1.$(file.patterns.context)=$(name.context.texexec) --pdf $(FileNameExt)
command.1.$(file.patterns.metafun)=$(name.context.texexec) --pdf --mptex $(FileNameExt)
command.1.$(file.patterns.example)=$(name.context.texexec) --pdf --xml $(FileNameExt)

command.1.subsystem.$(file.patterns.context)=1
command.1.subsystem.$(file.patterns.metafun)=1
command.1.subsystem.$(file.patterns.example)=1

# 2 : pdf viewing

command.name.2.$(file.patterns.context)=View PDF File
command.name.2.$(file.patterns.metafun)=
command.name.2.$(file.patterns.example)=View PDF File

command.2.$(file.patterns.context)=$(name.context.gsview) $(FileName).pdf
command.2.$(file.patterns.metafun)=
command.2.$(file.patterns.example)=$(name.context.gsview) $(FileName).pdf

command.subsystem.2.$(file.patterns.context)=2
command.subsystem.2.$(file.patterns.metafun)=2
command.subsystem.2.$(file.patterns.example)=2

# 2 : postscript

# command.name.2.$(file.patterns.context)=View PS File
# command.name.2.$(file.patterns.metafun)=View PS File (1)
# command.name.2.$(file.patterns.example)=View PS File

# command.2.$(file.patterns.context)=$(name.context.gsview) $(FileName).ps
# command.2.$(file.patterns.metafun)=$(name.context.gsview) $(FileName).1
# command.2.$(file.patterns.example)=$(name.context.gsview) $(FileName).ps

# command.subsystem.2.$(file.patterns.context)=2
# command.subsystem.2.$(file.patterns.metafun)=2
# command.subsystem.2.$(file.patterns.example)=2

# 3 : clean up

command.name.3.$(file.patterns.context)=Purge Files
command.name.3.$(file.patterns.metafun)=Purge Files
command.name.3.$(file.patterns.example)=Purge Files

command.3.$(file.patterns.context)=$(name.context.texutil) --purge
command.3.$(file.patterns.metafun)=$(name.context.texutil) --purge
command.3.$(file.patterns.example)=$(name.context.texutil) --purge

# 4 : documentation

command.4.$(file.patterns.context)=$(name.context.showcase)
command.4.$(file.patterns.metafun)=$(name.context.showcase)
command.4.$(file.patterns.example)=$(name.context.showcase)

command.name.4.$(file.patterns.context)=Show Documentation
command.name.4.$(file.patterns.metafun)=Show Documentation
command.name.4.$(file.patterns.example)=Show Documentation

# 5 : example framework applications

command.5=$(name.context.examplap)
command.5.$(file.patterns.context)=$(name.context.examplap)
command.5.$(file.patterns.metafun)=$(name.context.examplap)
command.5.$(file.patterns.example)=$(name.context.examplap)

command.name.5=Start Interfaces
command.name.5.$(file.patterns.context)=Start Interfaces
command.name.5.$(file.patterns.metafun)=Start Interfaces
command.name.5.$(file.patterns.example)=Start Interfaces

# 6 : console

command.name.6=Start Console
command.name.6.$(file.patterns.context)=Start Console
command.name.6.$(file.patterns.metafun)=Start Console
command.name.6.$(file.patterns.example)=Start Console

command.6=$(name.context.console)
command.6.$(file.patterns.context)=$(name.context.console)
command.6.$(file.patterns.metafun)=$(name.context.console)
command.6.$(file.patterns.example)=$(name.context.console)

# 7 : listings

command.name.7=Generate Listing
command.name.7.$(file.patterns.context)=Generate Listing
command.name.7.$(file.patterns.metafun)=Generate Listing
command.name.7.$(file.patterns.example)=Generate Listing

command.7=$(name.context.texexec) --pdf --list --result=$(FileName) $(FileNameExt)
command.7.$(file.patterns.context)=$(name.context.texexec) --pdf --list --result=$(FileName) $(FileNameExt)
command.7.$(file.patterns.metafun)=$(name.context.texexec) --pdf --list --result=$(FileName) $(FileNameExt)
command.7.$(file.patterns.example)=$(name.context.texexec) --pdf --list --result=$(FileName) $(FileNameExt)

command.7.subsystem=1
command.7.subsystem.$(file.patterns.context)=1
command.7.subsystem.$(file.patterns.metafun)=1
command.7.subsystem.$(file.patterns.example)=1

# 8 : example framework service

command.name.8=Example Service
command.name.8.$(file.patterns.context)=Example Service
command.name.8.$(file.patterns.metafun)=Example Service
command.name.8.$(file.patterns.example)=Example Service

command.8=$(name.context.exampler)
command.8.$(file.patterns.context)=$(name.context.exampler)
command.8.$(file.patterns.metafun)=$(name.context.exampler)
command.8.$(file.patterns.example)=$(name.context.exampler)

# 9 : format generation

command.name.9.$(file.patterns.context)=
command.name.9.$(file.patterns.metafun)=
command.name.9.$(file.patterns.example)=
command.9.$(file.patterns.context)=
command.9.$(file.patterns.metafun)=
command.9.$(file.patterns.example)=

if $(context.distribution.writable)
    command.name.9.$(file.patterns.context)=Generate Formats
    command.name.9.$(file.patterns.metafun)=Generate Formats
    command.name.9.$(file.patterns.example)=Generate Formats
    command.9.$(file.patterns.context)=$(name.context.texexec) --make --alone
    command.9.$(file.patterns.metafun)=$(name.context.texexec) --make --alone
    command.9.$(file.patterns.example)=$(name.context.texexec) --make --alone
    command.9.subsystem.$(file.patterns.context)=1
    command.9.subsystem.$(file.patterns.metafun)=1
    command.9.subsystem.$(file.patterns.example)=1

# Editor: syntax highlighting

view.indentation.guides=1
highlight.indentation.guides=1

# Editor: keys

user.shortcuts=\
F12|IDM_COMPILE|\
Ctrl+F12|IDM_BUILD|\
Shift+F12|IDM_GO|\
Alt+F12|IDM_STOPEXECUTE|\

# Editor: fonts (16.5/11.5)

use.monospaced=1
font.monospace=font:LMTypewriter10,size:16.5
font.errorfont=font:LMTypewriter10,size:11.5

# Editor: colors

color.back.linepanel=back:#A7A7A7
color.back.textpanel=back:#CFCFCF
color.back.logpanel=back:#EFEFEF
color.back.selection=#F7F7F7

color.fore.red=fore:#7F0000
color.fore.green=fore:#007F00
color.fore.blue=fore:#00007F
color.fore.cyan=fore:#007F7F
color.fore.magenta=fore:#7F007F
color.fore.yellow=fore:#7F7F00

# Editor: fast switching between files

tabbar.visible=1
tabbar.hide.one=1
tabbar.multiline=1

buffers=100
load.on.activate=1
check.if.already.open=1
tabbar.multiline=1

# Editor: handy anyway

line.numbers=5
title.full.path=1
strip.trailing.spaces=1
save.session=1
save.recent=1
open.dialog.in.file.directory=1

# Editor: tabbing

tabsize=4
indent.size=4
use.tabs=0
indent.automatic=1
indent.opening=0
indent.closing=0

# Editor: misc

# edge.mode=0
# edge.column=80

error.marker.fore=#FFFFFF
error.marker.back=#007F7F

# Editor: status

statusbar.visible=1
statusbar.number=1
statusbar.text.1=$(FileNameExt) | $(FileDate) $(FileTime) | line $(LineNumber) column $(ColumnNumber) | mode $(OverType)

# Editor: searching

find.files=
find.what=

find.replace.regexp.posix=1
find.files=*.tex *.xml *.mp

if PLAT_WIN
	find.command=fgrep -n $(find.what) $(find.files)

source.files=$(file.patterns.context);$(file.patterns.metafun);$(file.patterns.example);*.pl;*.rb
# Editor: printing

if PLAT_WIN
  print.colour.mode=1
  print.margins=750,750,750,750
  print.header.format=$(FileNameExt) — Printed on $(CurrentDate), $(CurrentTime) — Page $(CurrentPage)
  print.footer.format=$(FilePath) — File date: $(FileDate) — File time: $(FileTime)
  print.header.style=font:LMTypewriter10,size:10
  print.footer.style=font:LMTypewriter10,size:10

# Editor: processing

clear.before.execute=1
wrap.output=0

eol.mode=CRLF
ensure.final.line.end=1
ensure.consistent,line.ends=1

# Editor: file type

default.file.ext=.tex

# Editor: auto completion

autocompleteword.automatic=1
autocomplete.choose.single=0
api.*.tex=t:\sources\cont-en-scite.api
# Logging

style.errorlist.32=$(font.errorfont)

# Default
style.errorlist.0=fore:#000000
# python Error
style.errorlist.1=$(color.fore.red)
# gcc Error
style.errorlist.2=$(color.fore.red)
# Microsoft Error
style.errorlist.3=$(color.fore.red)
# command or return status
style.errorlist.4=$(color.fore.green)
# Borland error and warning messages
style.errorlist.5=$(color.fore.red)
# perl error and warning messages
style.errorlist.6=$(color.fore.red)
# .NET tracebacks
style.errorlist.7=$(color.fore.red)
# Lua error and warning messages
style.errorlist.8=$(color.fore.red)
# ctags
style.errorlist.9=$(color.fore.red)
# diff changed !
style.errorlist.10=$(color.fore.green)
# diff addition +
style.errorlist.11=$(color.fore.blue)
# diff deletion -
style.errorlist.12=$(color.fore.cyan)
# diff message ---
style.errorlist.13=$(color.fore.red)
# PHP error
style.errorlist.14=$(color.fore.red)
# Essential Lahey Fortran 90 error
style.errorlist.15=$(color.fore.red)
# Intel Fortran Compiler error
style.errorlist.16=$(color.fore.red)

# Context: end of file
