D
D
Denis2021-02-20 14:51:36
XML
Denis, 2021-02-20 14:51:36

How can I write a condition?

I need to paint over the text from " to " shorter than the type in quotation marks should be sketched.
I have a code and how do I write a condition.

<?xml version="1.0" encoding="UTF-8" ?>
<plist version="1.0">
    <dict>
        <key>patterns</key>
        <array>
            <dict>
                <key>name</key>
                <string>red</string>
                <key>match</key> 
                <string>сдесь</string> <!-- Вот тут нужно условие-->
            </dict>
        </array>
        <key>name</key>
        <string>12</string> 
        <key>scopeName</key>
        <string>12</string>
        <key>fileTypes</key>
        <array>
            <string>123</string>
        </array>
    </dict>
</plist>


Here is the info source https://m.habr.com/en/post/258053/

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2021-02-20
@Rsa97

XML is a text format. There is no "painting" in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question