Picon

Re: WinEdt and PDF forward and inverse search by Rob Hyndman -- a further remark

Hi all,

I am very excited and interested in the topic but some points are still not clear for me. I will list some points/problems I am facing now.

1) I have used the instructions of the website http://robjhyndman.com/researchtips/synchronizing-winedt-and-pdf-files/
It works almost perfectly.
  a) At the webpage Rob mentions we do not need to use pdfsync.sty, but I can only perform inverse and forward search with it. Am I missing something?
  b) When I use pdfsync.sty the tables in my document spam a length (much) bigger than when I supress the pdfsync.sty. I do not have any idea why this happens? Any hint?
  c) Is there any way to use the weel of the mouse to scrow down in the page I am viewing in Sumatra? When I use it, Sumatra goes to next pages.

2) PDF-XChange new version seems nice. However, I did not succeeded to make inverse and forward search work at my WinEdt 5.6. I have followed some instructions from Ignacio in a previous topic but I problably messed up something and I had to go back to a stable version of the Acrobat CloseDoc.edt. Does anyone has a working version of the macro? And it works if I change the viewer from PDFX to Sumatra (again) or even Acrobat?

Best,

Charles

PS: Alex, I am quite happy to see your participation in the list. I deeply hope this means your health is getting better and better. Best regards.

2009/7/31 Nicolas Vaughan <nivaca <at> gmail.com>
Umm... the new, unpatched version of SumatraPDF doesn't have a menu item to change the inverse search option.
You can edit your sumatrapdfprefs.dat file and find something like this:

24:InverseSearchCommandLine52:D:\TeX\WinEdt\winedt.exe "[Open(|%f|);SelPar(%l,8)]"

Check that your WinEdt path is correct.

Best,

Nicolas



On Fri, Jul 31, 2009 at 4:45 PM, Gyorgy SZEIDL <gyorgy.szeidl <at> uni-miskolc.hu> wrote:
thank you for your kind respond.
i did the same -- i also replaced
SumatraPDF-TeX  with the latest
version from the Sumatra-PDF
homepage.

now the beamer package seems to
work for me as well.

however the forward search does not
work for me yet.

regards
g.szeidl

Strange. It worked for me.
Cheers,
Nicolas


On Fri, Jul 31, 2009 at 9:40 AM, Ralf Heckmann <ralf_heckmann <at> yahoo.de> wrote:
Gyorgy SZEIDL wrote On 31.07.2009 14:57:

Dear Winedt users,

A further remark: SumatraPDF-TeX.exe
is unable to work properly with documents
created with the beamer.cls package.



Here, as the snapshot out of a larger log-file shows, it works fine:

This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7) (preloaded format=pdflatex 2009.7.30)  31 JUL 2009 16:31
entering extended mode
**[path-to-doc]/beamer-test.tex
("[path-to-doc]/beamer-test.tex"
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for ngerman-x-2008-06-18, german-x-2008-06-18, ngerman, german, ukenglish, english, french, dutch, latin, italian, polish, dumylang, nohyphenation, loaded.
([path-to-TeX]\MiKTeX27\tex\latex\beamer\base\beamer.cls
([path-to-TeX]\MiKTeX27\tex\latex\beamer\base\beamerbasercs.sty
Package: beamerbasercs 2007/01/28 (rcs-revision 1.4)
)
Document Class: beamer 2007/03/11 cvs version 3.07 A class for typesetting presentations (rcs-revision 1.70)
([path-to-TeX]\MiKTeX27\tex\latex\beamer\base\beamerbasemodes.sty
Package: beamerbasemodes 2007/01/28 (rcs-revision 1.22)
\beamer <at> tempbox=\box26
\beamer <at> tempcount=\count79
\c <at> beamerpauses=\count80

([path-to-TeX]\MiKTeX27\tex\latex\beamer\base\beamerbasedecode.sty
Package: beamerbasedecode 2007/01/28 (rcs-revision 1.20)
....
Output written on beamer-test.pdf (45 pages, 525174 bytes).
PDF statistics:
 2067 PDF objects out of 2073 (max. 8388607)
 107 named destinations out of 1000 (max. 131072)
 239 words of extra memory for PDF output out of 10000 (max. 10000000)


I did (nearly) nothing else than Rob has described: the change is, that after having done the setting with SumatraPDF-TeX I replaced that file with the latest version from the Sumatra-PDF homepage.


Regards,
Ralf





--
--------------------------------------------------------------
Dr. habil. Gyorgy SZEIDL
Full Professor
Department of Mechanics
University of Miskolc
3515 Miskolc-Egyetmeváros
Hungary
E-mail: Gyorgy.SZEIDL <at> uni-miskolc.hu
Phone (office): +36 46 565 111 ext. 18-92
http://www.mech.uni-miskolc.hu/staff/lecturers/G_Szeidl.html
--------------------------------------------------------------

--
I am using the free version of SPAMfighter.
We are a community of 6 million users fighting spam.
SPAMfighter has removed 90 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len

The Professional version does not have this message



Nicolas Vaughan | 2 Aug 19:41
Picon
Gravatar

Re: WinEdt and PDF forward and inverse search by Rob Hyndman -- a further remark

Hi Charles,

a) At the webpage Rob mentions we do not need to use pdfsync.sty, but I can only perform inverse and forward search with it. Am I missing something?
Yes, you shouldn't use pdfsync.sty at all, if you're using  synctex. (The --synctex=-1 option shoud be added to LaTeX and PDFLaTeX, as Alex reminded. Check the )

b) When I use pdfsync.sty the tables in my document spam a length (much) bigger than when I supress the pdfsync.sty. I do not have any idea why this happens? Any hint?
PDFsync.sty messes up the layout. As the author says, you should use is for draft purposes only. Try synctex.

c) Is there any way to use the weel of the mouse to scrow down in the page I am viewing in Sumatra? When I use it, Sumatra goes to next pages.
Yes. Choose the continuous page setup.

Regarding PDF-XChange I can tell you nothing.

Best wishes,
Nicolas


On Sun, Aug 2, 2009 at 12:03 PM, Charles Casimiro Cavalcante <charles.casimiro <at> gmail.com> wrote:
Hi all,

I am very excited and interested in the topic but some points are still not clear for me. I will list some points/problems I am facing now.

1) I have used the instructions of the website http://robjhyndman.com/researchtips/synchronizing-winedt-and-pdf-files/
It works almost perfectly.
  a) At the webpage Rob mentions we do not need to use pdfsync.sty, but I can only perform inverse and forward search with it. Am I missing something?
  b) When I use pdfsync.sty the tables in my document spam a length (much) bigger than when I supress the pdfsync.sty. I do not have any idea why this happens? Any hint?
  c) Is there any way to use the weel of the mouse to scrow down in the page I am viewing in Sumatra? When I use it, Sumatra goes to next pages.

2) PDF-XChange new version seems nice. However, I did not succeeded to make inverse and forward search work at my WinEdt 5.6. I have followed some instructions from Ignacio in a previous topic but I problably messed up something and I had to go back to a stable version of the Acrobat CloseDoc.edt. Does anyone has a working version of the macro? And it works if I change the viewer from PDFX to Sumatra (again) or even Acrobat?

Best,

Charles

PS: Alex, I am quite happy to see your participation in the list. I deeply hope this means your health is getting better and better. Best regards.

2009/7/31 Nicolas Vaughan <nivaca <at> gmail.com>

Umm... the new, unpatched version of SumatraPDF doesn't have a menu item to change the inverse search option.
You can edit your sumatrapdfprefs.dat file and find something like this:

24:InverseSearchCommandLine52:D:\TeX\WinEdt\winedt.exe "[Open(|%f|);SelPar(%l,8)]"

Check that your WinEdt path is correct.

Best,

Nicolas



On Fri, Jul 31, 2009 at 4:45 PM, Gyorgy SZEIDL <gyorgy.szeidl <at> uni-miskolc.hu> wrote:
thank you for your kind respond.
i did the same -- i also replaced
SumatraPDF-TeX  with the latest
version from the Sumatra-PDF
homepage.

now the beamer package seems to
work for me as well.

however the forward search does not
work for me yet.

regards
g.szeidl

Strange. It worked for me.
Cheers,
Nicolas


On Fri, Jul 31, 2009 at 9:40 AM, Ralf Heckmann <ralf_heckmann <at> yahoo.de> wrote:
Gyorgy SZEIDL wrote On 31.07.2009 14:57:

Dear Winedt users,

A further remark: SumatraPDF-TeX.exe
is unable to work properly with documents
created with the beamer.cls package.



Here, as the snapshot out of a larger log-file shows, it works fine:

This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7) (preloaded format=pdflatex 2009.7.30)  31 JUL 2009 16:31
entering extended mode
**[path-to-doc]/beamer-test.tex
("[path-to-doc]/beamer-test.tex"
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for ngerman-x-2008-06-18, german-x-2008-06-18, ngerman, german, ukenglish, english, french, dutch, latin, italian, polish, dumylang, nohyphenation, loaded.
([path-to-TeX]\MiKTeX27\tex\latex\beamer\base\beamer.cls
([path-to-TeX]\MiKTeX27\tex\latex\beamer\base\beamerbasercs.sty
Package: beamerbasercs 2007/01/28 (rcs-revision 1.4)
)
Document Class: beamer 2007/03/11 cvs version 3.07 A class for typesetting presentations (rcs-revision 1.70)
([path-to-TeX]\MiKTeX27\tex\latex\beamer\base\beamerbasemodes.sty
Package: beamerbasemodes 2007/01/28 (rcs-revision 1.22)
\beamer <at> tempbox=\box26
\beamer <at> tempcount=\count79
\c <at> beamerpauses=\count80

([path-to-TeX]\MiKTeX27\tex\latex\beamer\base\beamerbasedecode.sty
Package: beamerbasedecode 2007/01/28 (rcs-revision 1.20)
....
Output written on beamer-test.pdf (45 pages, 525174 bytes).
PDF statistics:
 2067 PDF objects out of 2073 (max. 8388607)
 107 named destinations out of 1000 (max. 131072)
 239 words of extra memory for PDF output out of 10000 (max. 10000000)


I did (nearly) nothing else than Rob has described: the change is, that after having done the setting with SumatraPDF-TeX I replaced that file with the latest version from the Sumatra-PDF homepage.


Regards,
Ralf





--
--------------------------------------------------------------
Dr. habil. Gyorgy SZEIDL
Full Professor
Department of Mechanics
University of Miskolc
3515 Miskolc-Egyetmeváros
Hungary
E-mail: Gyorgy.SZEIDL <at> uni-miskolc.hu
Phone (office): +36 46 565 111 ext. 18-92
http://www.mech.uni-miskolc.hu/staff/lecturers/G_Szeidl.html
--------------------------------------------------------------

--
I am using the free version of SPAMfighter.
We are a community of 6 million users fighting spam.
SPAMfighter has removed 90 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len

The Professional version does not have this message




Picon

Re: WinEdt and PDF forward and inverse search by Rob Hyndman -- a further remark

Hi Nicolas,

Thank you very much! I has really forgetten to incluce synctex in the Latex (I've put only on PDFLaTeX). Also the continuous page mode (how dummy I was).

I hope anyone else could give me some light on the use of PDF-XChange.

Best regards

Charles

2009/8/2 Nicolas Vaughan <nivaca <at> gmail.com>
Hi Charles,


a) At the webpage Rob mentions we do not need to use pdfsync.sty, but I can only perform inverse and forward search with it. Am I missing something?
Yes, you shouldn't use pdfsync.sty at all, if you're using  synctex. (The --synctex=-1 option shoud be added to LaTeX and PDFLaTeX, as Alex reminded. Check the )


b) When I use pdfsync.sty the tables in my document spam a length (much) bigger than when I supress the pdfsync.sty. I do not have any idea why this happens? Any hint?
PDFsync.sty messes up the layout. As the author says, you should use is for draft purposes only. Try synctex.


c) Is there any way to use the weel of the mouse to scrow down in the page I am viewing in Sumatra? When I use it, Sumatra goes to next pages.
Yes. Choose the continuous page setup.

Regarding PDF-XChange I can tell you nothing.

Best wishes,
Nicolas



On Sun, Aug 2, 2009 at 12:03 PM, Charles Casimiro Cavalcante <charles.casimiro <at> gmail.com> wrote:
Hi all,

I am very excited and interested in the topic but some points are still not clear for me. I will list some points/problems I am facing now.

1) I have used the instructions of the website http://robjhyndman.com/researchtips/synchronizing-winedt-and-pdf-files/
It works almost perfectly.
  a) At the webpage Rob mentions we do not need to use pdfsync.sty, but I can only perform inverse and forward search with it. Am I missing something?
  b) When I use pdfsync.sty the tables in my document spam a length (much) bigger than when I supress the pdfsync.sty. I do not have any idea why this happens? Any hint?
  c) Is there any way to use the weel of the mouse to scrow down in the page I am viewing in Sumatra? When I use it, Sumatra goes to next pages.

2) PDF-XChange new version seems nice. However, I did not succeeded to make inverse and forward search work at my WinEdt 5.6. I have followed some instructions from Ignacio in a previous topic but I problably messed up something and I had to go back to a stable version of the Acrobat CloseDoc.edt. Does anyone has a working version of the macro? And it works if I change the viewer from PDFX to Sumatra (again) or even Acrobat?

Best,

Charles

PS: Alex, I am quite happy to see your participation in the list. I deeply hope this means your health is getting better and better. Best regards.

2009/7/31 Nicolas Vaughan <nivaca <at> gmail.com>

Umm... the new, unpatched version of SumatraPDF doesn't have a menu item to change the inverse search option.
You can edit your sumatrapdfprefs.dat file and find something like this:

24:InverseSearchCommandLine52:D:\TeX\WinEdt\winedt.exe "[Open(|%f|);SelPar(%l,8)]"

Check that your WinEdt path is correct.

Best,

Nicolas



On Fri, Jul 31, 2009 at 4:45 PM, Gyorgy SZEIDL <gyorgy.szeidl <at> uni-miskolc.hu> wrote:
thank you for your kind respond.
i did the same -- i also replaced
SumatraPDF-TeX  with the latest
version from the Sumatra-PDF
homepage.

now the beamer package seems to
work for me as well.

however the forward search does not
work for me yet.

regards
g.szeidl

Strange. It worked for me.
Cheers,
Nicolas


On Fri, Jul 31, 2009 at 9:40 AM, Ralf Heckmann <ralf_heckmann <at> yahoo.de> wrote:
Gyorgy SZEIDL wrote On 31.07.2009 14:57:

Dear Winedt users,

A further remark: SumatraPDF-TeX.exe
is unable to work properly with documents
created with the beamer.cls package.



Here, as the snapshot out of a larger log-file shows, it works fine:

This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7) (preloaded format=pdflatex 2009.7.30)  31 JUL 2009 16:31
entering extended mode
**[path-to-doc]/beamer-test.tex
("[path-to-doc]/beamer-test.tex"
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for ngerman-x-2008-06-18, german-x-2008-06-18, ngerman, german, ukenglish, english, french, dutch, latin, italian, polish, dumylang, nohyphenation, loaded.
([path-to-TeX]\MiKTeX27\tex\latex\beamer\base\beamer.cls
([path-to-TeX]\MiKTeX27\tex\latex\beamer\base\beamerbasercs.sty
Package: beamerbasercs 2007/01/28 (rcs-revision 1.4)
)
Document Class: beamer 2007/03/11 cvs version 3.07 A class for typesetting presentations (rcs-revision 1.70)
([path-to-TeX]\MiKTeX27\tex\latex\beamer\base\beamerbasemodes.sty
Package: beamerbasemodes 2007/01/28 (rcs-revision 1.22)
\beamer <at> tempbox=\box26
\beamer <at> tempcount=\count79
\c <at> beamerpauses=\count80

([path-to-TeX]\MiKTeX27\tex\latex\beamer\base\beamerbasedecode.sty
Package: beamerbasedecode 2007/01/28 (rcs-revision 1.20)
....
Output written on beamer-test.pdf (45 pages, 525174 bytes).
PDF statistics:
 2067 PDF objects out of 2073 (max. 8388607)
 107 named destinations out of 1000 (max. 131072)
 239 words of extra memory for PDF output out of 10000 (max. 10000000)


I did (nearly) nothing else than Rob has described: the change is, that after having done the setting with SumatraPDF-TeX I replaced that file with the latest version from the Sumatra-PDF homepage.


Regards,
Ralf





--
--------------------------------------------------------------
Dr. habil. Gyorgy SZEIDL
Full Professor
Department of Mechanics
University of Miskolc
3515 Miskolc-Egyetmeváros
Hungary
E-mail: Gyorgy.SZEIDL <at> uni-miskolc.hu
Phone (office): +36 46 565 111 ext. 18-92
http://www.mech.uni-miskolc.hu/staff/lecturers/G_Szeidl.html
--------------------------------------------------------------

--
I am using the free version of SPAMfighter.
We are a community of 6 million users fighting spam.
SPAMfighter has removed 90 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len

The Professional version does not have this message





Andy Hu | 5 Aug 07:23
Favicon

pdfying numerous documents

Hello

Might be some guru can help with my problems.
I use winedit and miktex.

Sometimes I have more than 50 open Latex documents (from different folders or subfolders) in WinEdit. I would like to create PDF files for all documents just by one click (it is really boring to pdf texify each document separately).

Can you advise some way (?macros)

Many thanks in advance.


WinEdt Team | 7 Aug 01:37

Re: pdfying numerous documents

> Might be some guru can help with my problems.
> I use winedit and miktex.
>
> Sometimes I have more than 50 open Latex documents (from
> different folders or subfolders) in WinEdit. I would like to
> create PDF files for all documents just by one click (it is
> really boring to pdf texify each document separately).
>
> Can you advise some way (?macros)

Assuming that you want to create pdf for all opened documents
the following macro will do:

// ===========================================
LetReg(1, "%f");
LetRegNum(0,0);

:PDFTeXify:: -----------------

LetRegNum(0,%!0+1);
Run('texify.exe --pdf --clean "%n%t"',"%p", 0,0,"TeXify",0,0,1);
ActivateNextChild(1);
ProcessMessages;
Wait(1);
IfStr('%f','%!1','<>','JMP("PDFTeXify");');

Prompt('%!0 documents have been pdf-TeXified');

End;
//  ===========================================

One could perform extra tests to make sure that the document is
in TeX Mode to prevent compiling any other file that is opened
by mistake, etc... You can decide what kind of switches you
want to pass to MiKTeX's texify.exe and so on (I don't know but
you should:-).

In any case the above will do. Go and grab a cup of coffee and
by the time you're back you'll have all 50+ pdfs freshly
generated. If you want to kill the macro press and hold
Ctrl+Shift+ESC a few times (I didn't bother detecting any
compilation errors or failures but it can be done if you want
to make macro more fancy: take a look at macros in Exec folders
to see how)...

There are also macros ListOpenedFiles, ListFolderFiles that
allow you to process contents of folders without opening files
in WinEdt. But that would require a bit more work to make a
macro (I'll leave it with you:-)...

Best regards,

alex

Andy Hu | 7 Aug 08:53
Favicon

Re[2]: pdfying numerous documents

Alex, many thanks!

--- Исходное сообщение ---
От кого: WinEdt Team <support <at> winedt.com>
Кому: winedt+list <at> wsg.net
Дата: 7 августа, 02:37:15
Тема: Re: [WinEdt] pdfying numerous documents

> Might be some guru can help with my problems.
> I use winedit and miktex.
>
> Sometimes I have more than 50 open Latex documents (from
> different folders or subfolders) in WinEdit. I would like to
> create PDF files for all documents just by one click (it is
> really boring to pdf texify each document separately).
>
> Can you advise some way (?macros)

Assuming that you want to create pdf for all opened documents
the following macro will do:

// ===========================================
LetReg(1, "%f");
LetRegNum(0,0);

:PDFTeXify:: -----------------

LetRegNum(0,%!0+1);
Run('texify.exe --pdf --clean "%n%t"',"%p", 0,0,"TeXify",0,0,1);
ActivateNextChild(1);
ProcessMessages;
Wait(1);
IfStr('%f','%!1','<>','JMP("PDFTeXify");');

Prompt('%!0 documents have been pdf-TeXified');

End;
// ===========================================

One could perform extra tests to make sure that the document is
in TeX Mode to prevent compiling any other file that is opened
by mistake, etc... You can decide what kind of switches you
want to pass to MiKTeX's texify.exe and so on (I don't know but
you should:-).

In any case the above will do. Go and grab a cup of coffee and
by the time you're back you'll have all 50+ pdfs freshly
generated. If you want to kill the macro press and hold
Ctrl+Shift+ESC a few times (I didn't bother detecting any
compilation errors or failures but it can be done if you want
to make macro more fancy: take a look at macros in Exec folders
to see how)...

There are also macros ListOpenedFiles, ListFolderFiles that
allow you to process contents of folders without opening files
in WinEdt. But that would require a bit more work to make a
macro (I'll leave it with you:-)...

Best regards,

alex
Alain Forget | 13 Aug 20:47
Picon
Picon
Favicon

Highlighting numbers selectively

I am starting to use WinEdt to write R code (http://www.r-project.org/), and
I want literal/hardcoded numbers to be a different colour than the rest of
the text. However, I can't figure out how to make stand-alone numbers
(numeric literals) one color WITHOUT also colouring numbers that are in
variable names. So for example, take the following R code:

new08Data = 123
new09Data = 456
x1 = list(7, 8)

The "123", "456", "7", & "8" should be coloured, but "08", "09", and the "1"
in "x1" should not be coloured.

Any thoughts on what kind of filter set or switch that would do the trick?
Thanks in advance.

Alain

************************************
Alain Forget
Ph.D. Student
School of Computer Science
Carleton University
aforget <at> scs.carleton.ca
http://www.scs.carleton.ca/~aforget/
************************************

Murray Eisenberg | 13 Aug 20:54
Picon
Favicon

Windows 7

Does WinEdt 5.5 work natively (i.e., not in XP emulation mode) in 
Windows 7 32-bit?  in Windows 7 64-bit?

Same questions for WinEdt 5.6.

(And what about MiKTeX -- same questions?  The MiKTeX site says that 
both 2.7 and 2.8 support Windows 7, but it doesn't say whether that 
includes 64-bit support.)

--

-- 
Murray Eisenberg                     murray <at> math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

Alain Forget | 13 Aug 21:06
Picon
Picon
Favicon

RE: Windows 7

WinEdt 5.5 & MiKTeX 2.7 work in Win 7 64-bit...at least they do for me.

Alain

************************************
Alain Forget
Ph.D. Student
School of Computer Science
Carleton University
aforget <at> scs.carleton.ca
http://www.scs.carleton.ca/~aforget/
************************************

-----Original Message-----
From: Murray Eisenberg [mailto:murray <at> math.umass.edu] 
Sent: August 13, 2009 14:54
To: WinEdt List
Subject: [WinEdt] Windows 7

Does WinEdt 5.5 work natively (i.e., not in XP emulation mode) in Windows 7
32-bit?  in Windows 7 64-bit?

Same questions for WinEdt 5.6.

(And what about MiKTeX -- same questions?  The MiKTeX site says that both
2.7 and 2.8 support Windows 7, but it doesn't say whether that includes
64-bit support.)

--

-- 
Murray Eisenberg                     murray <at> math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

WinEdt Team | 13 Aug 22:03

Re: Highlighting numbers selectively

>I am starting to use WinEdt to write R code (http://www.r-project.org/), 
>and
> I want literal/hardcoded numbers to be a different colour than the rest of
> the text. However, I can't figure out how to make stand-alone numbers
> (numeric literals) one color WITHOUT also colouring numbers that are in
> variable names. So for example, take the following R code:
>
> new08Data = 123
> new09Data = 456
> x1 = list(7, 8)
>
> The "123", "456", "7", & "8" should be coloured, but "08", "09", and the 
> "1"
> in "x1" should not be coloured.
>
> Any thoughts on what kind of filter set or switch that would do the trick?

You will have to define 3 filter sets. They can be disabled and
don't need any highlighting attributes but they will be needed
in the definition of switches:

FILTER_SET="AnyNum"
  SET=:["0123456789"]

FILTER_SET="Num"
  SET="AnyNum"
  BEFORE="~Alpha"

FILTER_SET="~Num"
 SET="~AnyNum"

Now you need two switches (in this order!):

SWITCH="Number"
  START="Num"
  STOP="~Num"
  HIGHLIGHT_START=1
  SCOPE=1
  STRICT_PRIORITY=1
  PRIORITY=6
  CASE_SENSITIVE=1

SWITCH="Not a Number"
  START="AnyNum"
  STOP="~Num"
  HIGHLIGHT_START=1
  SCOPE=1
  STRICT_PRIORITY=1
  PRIORITY=6
  CASE_SENSITIVE=1

The second one can have default color or else the same color as
Numeric characters in Filter Sets. The first one can be
highlighted any way you want (these are proper numbers in your
example). I tested it with your example and it works as
intended. You will have to do this in the Highlighting Dialog.
Help there will explain what you have to check (the above is
just a guide because current version of WinEdt does not support
loading scripts like that.

The second switch is needed or else only the first digit in
variable names would not be highlighted...

Best regards,

alex


Gmane