Sublime Forum

Custom Syntax Highlight question

#1

I have a log file and I want to do some custom Syntax highlight on that. I was following this thread sublimetext.com/forum/viewt … f=3&t=6381.

I have this so far

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>fileTypes</key> <array> <string>ss</string> </array> <key>name</key> <string>Sublime Cue</string> <key>patterns</key> <array> <dict> <key>name</key> <string>Running</string> <key>scope</key> <string>Running</string> <key>settings</key> <dict> <key>foreground</key> <string>#75715E</string> </dict> </dict> </array> <key>scopeName</key> <string>source.cue</string> <key>uuid</key> <string>461239ff-321d-4b44-bc63-6f8a7d6bce4a</string> </dict> </plist>

So where ever we see Running I need to highlight that. Anyways my code is not working. Any hints ?

0 Likes

#2

Never mind found it :smile:

<dict> <key>match</key> <string>\b(Running)\b</string> <key>name</key> <string>entity.other.inherited-class</string> </dict>

0 Likes