Set CSS of words enclosed in double quotes

后端 未结 3 651
天命终不由人
天命终不由人 2021-01-27 04:21

This is a follow up question to my question about Setting the CSS of code if it contains a reserved word.

What I am trying to do: If some code has quot

3条回答
  •  没有蜡笔的小新
    2021-01-27 04:53

    Why split the string up when you can perform a simple global regex find and replace:

    
    

    Edit: Just updated it to accommodate nested quotes.

提交回复
热议问题