воскресенье, 26 февраля 2017 г.

Quick Tip: find all Django tags in Sublime Text

Here's the quick tip:
1. Open find panel at the bottom: Ctrl (or Cmd on MacOS) + F
2. Toggle Regular Expression button. It has .* on it.
3. And here is the trickiest part: {% block \w+ %}(?s).*?{% endblock \w+ %}
It's the regex for finding all django tags

Комментариев нет:

Отправить комментарий