Is there a way to colorcode/highlight robots.txt and .htaccess syntax? E.g. with a SublimeText2 plug-in. I found this, but can't figure out how to install it: https://github.com/shellderp/sublime-robot-plugin
Asked
Active
Viewed 1.5k times
1 Answers
116
Use Package Control to install the syntax packages you want to use. If you're using Sublime Text without Package Control, you're missing out on a lot.
- Install Package Control (follow the linked instructions)
- After restarting, type Command+Shift+P then
Install Package
- Install ApacheConf and the Robot Framework you mentioned
Packages can be added and removed very easily, but greatly enhance and personalize what you can do with Sublime Text.

joemaller
- 19,579
- 7
- 67
- 84
-
9I think Robot Framework is test automation package and has nothing to do with robots.txt – Mikko Ohtamaa Jan 06 '13 at 18:14
-
@MikkoOhtamaa might be, I installed it and quickly checked a robots.txt file, but looking more closely it appears syntax was only superficially supported. Using Yaml syntax is more meaningful. – joemaller Jan 06 '13 at 20:18
-
2.htaccess +1. Robots still not highlighted though – Geo Jan 07 '13 at 15:32
-
1To get robots.txt syntax highlighted, install Robot Framework as described above, open .txt file and choose `View -> Syntax -> Robot Framework syntax highlighting` (or Open all with current extension as). It highlights all .txt files. To highlight specific file by name see https://stackoverflow.com/questions/22232312/set-syntax-for-a-specific-file-name-in-sublime-text-2-3 – Jan Renner Nov 06 '18 at 09:31