#INCLUDE vs #include

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
pboivin007
Posts: 5
Joined: Tue Sep 28, 2010 1:05 pm

#INCLUDE vs #include

Post 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
User avatar
woho
Posts: 100
Joined: Tue Sep 02, 2003 9:12 am
Location: Steyr/Austria
Contact:

Post 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
pboivin007
Posts: 5
Joined: Tue Sep 28, 2010 1:05 pm

Post 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
Post Reply