Page 1 of 1

#INCLUDE vs #include

Posted: Tue Sep 28, 2010 1:15 pm
by pboivin007
Hi

I notice Textpad recognize

#include "file.h"

but not

#INCLUDE "FILE.H"

Is this something I can change in my syntax file?

I'm using Clipper52e.syn available in the download section.

Below is the first page of the syntax file.

Thanks
Pascal
C=1

[Syntax]
Namespace1 = 6
IgnoreCase = Yes
InitKeyWordChars = A-Za-z_
KeyWordChars = A-Za-z0-9_
BracketChars = {[()]}
OperatorChars = -+*/<>!~%^&|=
PreprocStart = #
SyntaxStart =
SyntaxEnd =
CommentStart = /*
CommentEnd = */
CommentStartAlt =
CommentEndAlt =
SingleComment = //
SingleCommentCol =
SingleCommentAlt = &&
SingleCommentColAlt =
StringStart = "
StringEnd = "
StringAlt =
StringEsc =
CharStart = '
CharEnd = '
CharEsc =


[Preprocessor keywords]

#command
#define
#error
#ifdef
#ifndef
#include
#stdout
#undef
#xcommand

Posted: Wed Sep 29, 2010 7:27 am
by woho
Hi
no idea why 'IgnoreCase = Yes' is ignored
But for a quick solution I just would add the keywords a 2nd time in uppercase
which is easy to accomplish thanks to TextPad's 'change case' command

#COMMAND
#DEFINE
#ERROR
#IFDEF
#IFNDEF
#INCLUDE
#STDOUT
#UNDEF

ahh.. you are talking about syntax coloring, not opening the #include file on another path by selcting the context menu entry ?? (search textpad online help for 'include')
WoHo

Posted: Wed Sep 29, 2010 12:52 pm
by pboivin007
I'm talking about the "File open" feature.

The uppercase keyword appears with the same colors as the lowercase (IgnoreCase=Yes is okay).

I have test it with a .TXT file and the "File open" feature is still available when the line begin with #include so I beleive it is hardcode in textpad.

Thanks