Search code examples
sublimetext3sublimetext

How to display a text file (.txt) as a code file with color in Sublime Text 3


I'm using sublime text 3. And I want to display a text with color like a code file in Sublime. But I don't know how to do. Please help me!. Thanks you!


Solution

  • You can manually set the syntax of any file using the Command Palette and type "Set Syntax: " or from the bottom right dialog (by default it reads "Plain Text").

    If you want Sublime Text to remember your choice, you can also do that from the syntax selection dialog mentioned above, or View > Syntax > Open all with current extension as…".