Vagrantfile syntax highlighting
Answered
Hi,
have you managed to use TextMate bundle support to add syntax highlighting for Vagrantfiles? If you have, how? Which particular bundle have you used and how have you configured?
I have working highlighting for Ruby-files (I used , but I've been unable to activate it for Vagrantfiles (I've tried to add "Vagrantfile" into "Files supported by TextMate bundle" and into Ruby.tmbundle's Syntaxes/Ruby.plist's FileTypes, but without any succeess.)
have you managed to use TextMate bundle support to add syntax highlighting for Vagrantfiles? If you have, how? Which particular bundle have you used and how have you configured?
I have working highlighting for Ruby-files (I used , but I've been unable to activate it for Vagrantfiles (I've tried to add "Vagrantfile" into "Files supported by TextMate bundle" and into Ruby.tmbundle's Syntaxes/Ruby.plist's FileTypes, but without any succeess.)
- Asko
Please sign in to leave a comment.
and adding <string>Vargrantfile</string> to Ruby.tmbundle\Syntaxes\Ruby.plist
➜ Ruby.tmbundle git:(master) ✗ grep -i "Vagrant" Syntaxes/Ruby.plist -B2 -A11
<key>fileTypes</key>
<array>
<string>vagrantfile</string>
<string>Vagrantfile</string>
<string>rb</string>
<string>rbx</string>
<string>Rakefile</string>
<string>rake</string>
<string>sake</string>
<string>cgi</string>
<string>fcgi</string>
<string>gemspec</string>
<string>irbrc</string>
<string>capfile</string>
</array>
➜ PyCharm20 cat options/filetypes.xml
<?xml version="1.0" encoding="UTF-8"?>
<application>
<component name="FileTypeManager" version="11">
<ignoreFiles list="CVS;SCCS;RCS;rcs;.DS_Store;.svn;.pyc;.pyo;*.pyc;*.pyo;.git;*.hprof;_svn;.hg;*.lib;*~;__pycache__;.bundle;*.rbc;*$py.class;*.orig;" />
<extensionMap>
<mapping ext="cfg" type="BuildoutCfg" />
<mapping ext="pt" type="HTML" />
<mapping pattern="Vagrantfile" type="TextMate" />
<mapping pattern="Rakefile" type="TextMate" />
<mapping ext="rake" type="TextMate" />
<mapping ext="fcgi" type="TextMate" />
<mapping ext="vagrantfile" type="TextMate" />
<mapping ext="rbx" type="TextMate" />
<mapping ext="irbrc" type="TextMate" />
<mapping ext="gemspec" type="TextMate" />
<mapping ext="sake" type="TextMate" />
<mapping ext="rb" type="TextMate" />
<mapping ext="capfile" type="TextMate" />
<mapping ext="robot" type="TextMate" />
<mapping ext="zcml" type="XML" />
</extensionMap>
</component>
</application>
Hi,
> the default background color (for all non-highlighted text) is white on Darcula theme (all text with some highlighted color has the default Darcula background color).
Im experiencing this exact issue. Is there some workaround that we can use, or is this planned to be fixed?
Tkx
Hello! I have same issue. Some users have this problem with TextMate too: https://github.com/textmate/python.tmbundle/issues/52
Is there a workaround?
Upd:
I found workaround. (I try on Ubuntu 17.10 with PhpStrom from snap package)
In file `~/.PhpStorm2017.3/config/options/textmate.xml`
To find `<entry key="_@user_Darcula" value="Darcula" />` similar string (with `_@user`). Replace for preferred theme (Darcula in my case). It's work for me.
Please follow the related issue on YouTrack: https://youtrack.jetbrains.com/issue/RUBY-21041