Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть How to Create Custom Syntax Highlighting in Sublime Text 3 for Your Own Programming Language

  • vlogize
  • 2025-09-09
  • 2
How to Create Custom Syntax Highlighting in Sublime Text 3 for Your Own Programming Language
custom syntax in sublime 3pythonsyntaxsublimetext3
  • ok logo

Скачать How to Create Custom Syntax Highlighting in Sublime Text 3 for Your Own Programming Language бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно How to Create Custom Syntax Highlighting in Sublime Text 3 for Your Own Programming Language или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку How to Create Custom Syntax Highlighting in Sublime Text 3 for Your Own Programming Language бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео How to Create Custom Syntax Highlighting in Sublime Text 3 for Your Own Programming Language

Discover how to customize syntax highlighting in Sublime Text 3 for any programming language, including handling unique comment syntax effectively.
---
This video is based on the question https://stackoverflow.com/q/63447871/ asked by the user 'rikaxd' ( https://stackoverflow.com/u/14104187/ ) and on the answer https://stackoverflow.com/a/63448504/ provided by the user 'Jasmijn' ( https://stackoverflow.com/u/573255/ ) at 'Stack Overflow' website. Thanks to these great users and Stackexchange community for their contributions.

Visit these links for original content and any more details, such as alternate solutions, latest updates/developments on topic, comments, revision history etc. For example, the original title of the Question was: custom syntax in sublime 3

Also, Content (except music) licensed under CC BY-SA https://meta.stackexchange.com/help/l...
The original Question post is licensed under the 'CC BY-SA 4.0' ( https://creativecommons.org/licenses/... ) license, and the original Answer post is licensed under the 'CC BY-SA 4.0' ( https://creativecommons.org/licenses/... ) license.

If anything seems off to you, please feel free to write me at vlogize [AT] gmail [DOT] com.
---
Creating Custom Syntax Highlighting in Sublime Text 3

Are you currently working in a company that uses a unique programming language closely related to Python? If so, you might have encountered challenges with syntax highlighting in Sublime Text 3, especially when trying to use custom comment symbols. In this post, we will explore how to modify Sublime Text 3's syntax highlighting to support such unique requirements.

The Problem

When trying to replace Python's default comment symbol (# ) with a custom symbol (..), you may find that everything else in your code also gets commented out. This unexpected behavior is often due to how regular expressions interpret characters in the syntax settings.

Example of the Issue

In Sublime Text 3, the typical code for comments in a Python syntax file appears as follows:

[[See Video to Reveal this Text or Code Snippet]]

When you replace '# ' with '..', the syntax highlighter might mistakenly interpret this change, which leads to unintended sections of code being commented out. Let's delve into the solution.

The Solution: Customizing the Syntax File

To effectively change the comment symbol from # to .., we need to ensure that the syntax file understands we want to match the literal characters. Here’s how to do it:

Step-by-Step Instructions

Locate the Syntax File: First, locate the syntax definition file for Python in Sublime Text. You may need to make a copy to modify it for your custom programming language.

Modify the Comments Syntax:

Look for the comments section in the syntax file.

Change the match line from '# ' to:

[[See Video to Reveal this Text or Code Snippet]]

This change ensures that we match two literal periods (dots) instead of treating them as a placeholder for any two characters.

Regular Expressions Explained:

In regular expressions, . is a special character that matches any single character. By escaping it with a backslash (.), you tell the regex engine to treat it just as a dot.

Thus, '..' correctly specifies the sequence of two dots.

Conclusion

Customizing syntax highlighting in Sublime Text 3 for a unique programming language can be quite straightforward once you understand how regex interacts with the syntax file. By following the solution provided, you can efficiently tailor the editor to recognize your specific comment formatting, enhancing your coding experience.

If you're dealing with other modifications or need further assistance, feel free to reach out or explore community forums for more tips on customizing Sublime Text!

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]