Page 1 of 1

How to highlight URL links in a text file

Posted: Wed Sep 24, 2003 2:16 pm
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

Posted: Wed Sep 24, 2003 2:59 pm
by s_reynisson
Take a look at TP's text.syn (I think that's the name).

Posted: Thu Oct 02, 2003 6:00 pm
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 =

Posted: Thu Oct 02, 2003 6:19 pm
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.