I just noticed that when editing a an HTML file, TextMate seems to report
the indent level of the tags rather than the column numbers. I have my
indent set to two spaces (soft tabs) and the following code will show 2:2
when the cursor is at
the beginning of the second paragraph tag when it should display 2:3.
<p>
<p>
</p>
</p>
TextMate version 2.0-beta.8
OSX version 10.10.5
I started noticing recently that selecting an AppleScript in various
places (Xcode, Quicksilver, Finder, Path Finder) will hang the
foreground application in question.
Before the hang, I always see garbage (the raw text) in the Quick Look
preview. I’m pretty sure TextMate is attempting to generate the
previews in this case. (AppleScript claims to be `public.source-code`,
and TextMate’s Quick Look generator claims to be able to handle that.)
Can anyone confirm? Is it possible for the Quick Look generator to
ignore AppleScript?
--
Rob McBroom
http://www.skurfer.com/
Hi,
I'm trying to inject a custom grammar to syntax highlight test scripts inlined in python single quoted block strings (i.e.. ''' <script here>''').
This works well:
grammar : source.calvin.embedded
injection selector : string.quoted.single.block.python
definition : { patterns = ( { include = 'source.calvin'; } ); }
but when I add a scopeAttribute in .tm_properties
[ tests/*.py ]
scopeAttributes = 'attr.test.calvin'
in order to prevent the injection from happening everywhere it no longer works.
I was under the impression that the injection selector
string.quoted.single.block.python attr.test.calvin
should do just that, but nothing seems to work (no syntax highlighting).
I've tried adding '&', grouping in () etc. but no luck.
Could anyone share some insight into this?
/Per
Sometimes when I copy and paste, or select a file from templates, I get so many pair of inverted commas in the file like given
below
\documentclass[aps,prl,twocolumn,floatfix,groupedaddress]{revtex4}'
''
'\usepackage{amssymb}'
'\usepackage{amsmath}'
'\usepackage{bm}'
'\usepackage{graphicx}'
'\usepackage{subfigure}'
'\usepackage{dcolumn}'
'\usepackage[colorlinks,citecolor=red,linkcolor=blue,urlcolor=blue]{hyperref}'
''
'\begin{document}'
Is there something wrong in the setting of TextMate?
Best Regards,
Riki
I am getting error in LaTex: Failure running “Typeset & View (PDF)”
/Users/riki/Library/Application Support/TextMate/Managed/Bundles/Bundle
Support.tmbundle/Support/shared/lib/tm/process.rb:121: warning: Insecure world writable dir /Users/riki/Library/Application
Support in PATH, mode 040706 Traceback (most recent call last): File "/Users/riki/Library/Application
Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/texmate.py", line 65, in from tmprefs import Preferences File
"/Users/msheets/Library/Application Support/Avian/Bundles/latex.tmbundle/Support/bin/tmprefs.py", line 3, in from __future__
import print_function ImportError: No module named Foundation
Installed Python version:
Python 2.7.10 (default, Jul 14 2015, 19:46:27)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
and
Python 3.4.3 |Anaconda 2.3.0 (x86_64)| (default, Mar 6 2015, 12:07:41)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Installed Ruby version:
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
Best Regards,
Riki
I've noticed spell checking isn't working in text.html.php strings. It is working in source.js.jquery, however. See the examples in the attached screenshots.
Here are the bundle preferences that seem relevant (Source and PHP; the HTML bundle doesn't seem to have any that effect spelling).
Where should I look to see where this could be going wrong?
Thanks,
Quinn
Source.tmbundle/Preferences/Enable spell checking for strings.plist
{
name = "Spell Checking: Enable for Strings";
scope = "^ source string.quoted - punctuation";
settings = {
spellChecking = 1;
};
}
Source.tmbundle/Preferences/Disable spell checking for all.plist
{
name = "Spell Checking: Disable for Source";
scope = "source, constant, keyword, storage, support, variable";
settings = {
spellChecking = 0;
};
}
PHP.tmbundle/Preferences/Disable spellcheck in require.tmPreferences
{
name = "Disable spellcheck in require";
scope = "meta.include.php string.quoted";
settings = {
spellChecking = 0;
};
}
PHP.tmbundle/Preferences/Enable Spellchecking for Docblocks.tmPreferences
{
name = "Enable Spellchecking for Docblocks";
scope = "comment.block.documentation.phpdoc.php";
settings = {
spellChecking = 1;
};
}