How to highlight URL links in a text file

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
leon5wu
Posts: 2
Joined: Wed Sep 24, 2003 2:08 pm

How to highlight URL links in a text file

Post by leon5wu »

Hi there,

Could anyone give some comments on how to highlight URL links in a text file? For example, I want to http://yahoo.com have different collor and underline other than regular text.
Thanks.

Leon
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

Take a look at TP's text.syn (I think that's the name).
leon5wu
Posts: 2
Joined: Wed Sep 24, 2003 2:08 pm

Post by leon5wu »

Is the text.syn correct or not?

; TextPad syntax definitions for plain text files
; Copyright (C) 1999-2000, Helios Software Solutions

; WARNING: Do not attempt to add keywords to this file.
; They will be ignored, because it starts with
; "TEXT=1". You should use one of the other
; syntax definition files as a starting point.

TEXT=1

[Syntax]
Namespace1 = 6
IgnoreCase = Yes
KeyWordLength =
BracketChars =
OperatorChars =
PreprocStart =
SyntaxStart =
SyntaxEnd =
CommentStart =
CommentEnd =
CommentStartAlt =
CommentEndAlt =
SingleComment =
SingleCommentCol =
SingleCommentAlt =
SingleCommentColAlt =
StringStart =
StringEnd =
StringAlt =
StringEsc =
CharStart =
CharEnd =
CharEsc =
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

Look's just like mine.

Go to
Configure->Preferences->Document Classes->Text->Syntax
and check
"Enable syntax highlighting"
and select
"text.syn"
from the dropdown menu.
Then I open up and see
the person fumbling here is me
a different way to be
Post Reply