Hello All,
I am using a c.syn as a base and i was adding some keywords to highlight but when they have a space it wont highlight
[Log snip]
[30066] (11/07 21:13:44.780):{0x1D60} Total Msgs Pending 39
In the Syn log i have this
[Syntax]
KeyWordLength = 6
BracketChars = {[()]}
[Keywords 3]
0x8004010f
0x80004005
Total Msgs
How to highlight a two words from a line
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
i dont fully understand your responce, as i have tried the followingrcmpayne wrote:So for the logline above i could use this?Bob Hansen wrote:The TextPad syntax processer uses the space as a delimiter. It will only work on complete words. Can you replace the space with something like "_" ?. That would be acceptable to the syntax processor.
[Keywords 3]
Total_Msgs
Total Msgs
Total_Msgs
Total"_"Msgs
"Total_Msgs"
Working with two words
Hello,
Yes i just tried it again and it still doe snot work, I edited the syn file, selected another one, a
1. Edit the syn file
2. Choose a diffrent syn file as the text class
3. Apply ok
4. Change the syn file back to the one i want
5. Close and open textpad
6. drag and drop a log file in
single words highlight, but ones with spaces wont
Here is a snip if you would like to play with it
UTF-8 encoded
[30000] (11/07 00:00:00.094):{0x1E1C} Current Date: 2009/11/07
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Current Process id: 7732
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Computer Host Name: GVWGWBESP10, OS Version: 5.2, Build number 3790, ServicePack Major 2, ServicePack Minor 0
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Processor Identifier: x86 Family 15 Model 37 Stepping 1
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Processor Vendor Identifier: AuthenticAMD
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Processor Name String: AMD Opteron(tm) Processor 254
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Number of Processors: 2
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] 59 percent of memory in use.
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Total size of physical memory: 2096604 KB
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Size of physical memory available: 845216 KB
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Size of the committed memory limit: 5293212 KB
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Size of available memory to commit: 4093024 KB
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Total size of the user mode portion of the virtual address space of the BES process: 2097024 KB
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Size of unreserved and uncommitted memory in the user mode portion of the virtual address space of the BES process: 1807980 KB
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Size of private memory of the BES process: 43648 KB
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Total HD bytes: 28229156864, Total free bytes = 17132470272
[30000] (11/07 00:00:00.626):{0x1E1C} [ENV] System up time: 0 days 03 hrs 42 mins 21 secs
[30000] (11/07 00:00:00.626):{0x1E1C} [ENV] Local Time Zone: Eastern Daylight Time (GMT-05:00)
[30000] (11/07 00:00:00.626):{0x1E1C} [ENV] TCP/IP provider (Winsock) File Version: 5.2.3790.0 (C:\WINDOWS\System32\wsock32.dll)
[30000] (11/07 00:00:00.626):{0x1E1C} [ENV] Local machine IP Address = 192.*.*.151
[30000] (11/07 00:00:00.626):{0x1E1C} [ENV] Winsock2 file: Network Location Awareness (NLA) Namespace, Version: 5.2.3790.4318 (C:\WINDOWS\System32\mswsock.dll)
[30000] (11/07 00:00:00.626):{0x1E1C} [ENV] Microsoft XML Parser 4.0: C:\WINDOWS\system32\msxml4.dll, Version: 4.20.9849.0
[30000] (11/07 00:00:00.626):{0x1E1C} [ENV] MDAC version: 2.82.3959.0
[30000] (11/07 00:00:00.626):{0x1E1C} [ENV] MSADO15.DLL: C:\Program Files\Common Files\System\ado\msado15.dll, Version: 2.82.3959.0
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: System
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: smss.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: csrss.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: winlogon.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: services.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: lsass.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: svchost.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: svchost.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: svchost.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: svchost.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: svchost.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: spoolsv.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: msdtc.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: BESClient.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: autosysd.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: cpqrcmc.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: cpqriis.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: vcagent.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: svchost.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: opcctla.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: hpwmistor.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: FrameworkService.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: Mcshield.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: VsTskMgr.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: naPrdMgr.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: omtsreco.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: GWCheckNew.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: opcmsga.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: llbserver.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: opcacta.exe
Yes i just tried it again and it still doe snot work, I edited the syn file, selected another one, a
1. Edit the syn file
2. Choose a diffrent syn file as the text class
3. Apply ok
4. Change the syn file back to the one i want
5. Close and open textpad
6. drag and drop a log file in
single words highlight, but ones with spaces wont
Here is a snip if you would like to play with it
UTF-8 encoded
[30000] (11/07 00:00:00.094):{0x1E1C} Current Date: 2009/11/07
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Current Process id: 7732
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Computer Host Name: GVWGWBESP10, OS Version: 5.2, Build number 3790, ServicePack Major 2, ServicePack Minor 0
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Processor Identifier: x86 Family 15 Model 37 Stepping 1
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Processor Vendor Identifier: AuthenticAMD
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Processor Name String: AMD Opteron(tm) Processor 254
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Number of Processors: 2
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] 59 percent of memory in use.
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Total size of physical memory: 2096604 KB
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Size of physical memory available: 845216 KB
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Size of the committed memory limit: 5293212 KB
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Size of available memory to commit: 4093024 KB
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Total size of the user mode portion of the virtual address space of the BES process: 2097024 KB
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Size of unreserved and uncommitted memory in the user mode portion of the virtual address space of the BES process: 1807980 KB
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Size of private memory of the BES process: 43648 KB
[30000] (11/07 00:00:00.610):{0x1E1C} [ENV] Total HD bytes: 28229156864, Total free bytes = 17132470272
[30000] (11/07 00:00:00.626):{0x1E1C} [ENV] System up time: 0 days 03 hrs 42 mins 21 secs
[30000] (11/07 00:00:00.626):{0x1E1C} [ENV] Local Time Zone: Eastern Daylight Time (GMT-05:00)
[30000] (11/07 00:00:00.626):{0x1E1C} [ENV] TCP/IP provider (Winsock) File Version: 5.2.3790.0 (C:\WINDOWS\System32\wsock32.dll)
[30000] (11/07 00:00:00.626):{0x1E1C} [ENV] Local machine IP Address = 192.*.*.151
[30000] (11/07 00:00:00.626):{0x1E1C} [ENV] Winsock2 file: Network Location Awareness (NLA) Namespace, Version: 5.2.3790.4318 (C:\WINDOWS\System32\mswsock.dll)
[30000] (11/07 00:00:00.626):{0x1E1C} [ENV] Microsoft XML Parser 4.0: C:\WINDOWS\system32\msxml4.dll, Version: 4.20.9849.0
[30000] (11/07 00:00:00.626):{0x1E1C} [ENV] MDAC version: 2.82.3959.0
[30000] (11/07 00:00:00.626):{0x1E1C} [ENV] MSADO15.DLL: C:\Program Files\Common Files\System\ado\msado15.dll, Version: 2.82.3959.0
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: System
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: smss.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: csrss.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: winlogon.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: services.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: lsass.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: svchost.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: svchost.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: svchost.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: svchost.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: svchost.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: spoolsv.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: msdtc.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: BESClient.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: autosysd.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: cpqrcmc.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: cpqriis.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: vcagent.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: svchost.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: opcctla.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: hpwmistor.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: FrameworkService.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: Mcshield.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: VsTskMgr.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: naPrdMgr.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: omtsreco.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: GWCheckNew.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: opcmsga.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: llbserver.exe
[30000] (11/07 00:00:00.641):{0x1E1C} [ENV] Running Process: opcacta.exe
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
In your last posting you wrote:
It is not enough to add the "_" to the words in your list of keywords. The source text that you are reading must have the "_" also. The syntax file does not use the "_" as a wildcard for spaces, it is looking for the actual "_" character.
That was your original problem, and as noted, they will not highlight. Again, use the underscore "_" character to replace the spaces where you can.single words highlight, but ones with spaces wont
It is not enough to add the "_" to the words in your list of keywords. The source text that you are reading must have the "_" also. The syntax file does not use the "_" as a wildcard for spaces, it is looking for the actual "_" character.
Hope this was helpful.............good luck,
Bob
Bob
-
- Posts: 1
- Joined: Sun Dec 20, 2009 8:18 am
You can find it here following information
Edit the syn file,Choose a diffrent syn file as the text class, Apply ok. Change the syn file back to the one i want, Close and open textpad, drag and drop a log file in single words highlight, but ones with spaces wont .
By
Abbeytallbert
Bestofcolleges in US
Edit the syn file,Choose a diffrent syn file as the text class, Apply ok. Change the syn file back to the one i want, Close and open textpad, drag and drop a log file in single words highlight, but ones with spaces wont .
By
Abbeytallbert
Bestofcolleges in US