Why is Sublime HTML Prettify not working - sublimetext2

I've installed Sublime-HTMLPrettify as shown here https://github.com/victorporof/Sublime-HTMLPrettify
but when I try and use the command (e.g. by right clicking on a selected section of HTML) it doesn't do anything.
Is there something I'm missing?
==== PLATFORMS
SublimeText 2
OS X 10.11.3 (15D21)
Node.js is at /usr/local/bin/node and I can access it from the CLI using node.

Which version of Sublime Text you are using? and in which OS you have installed it?
For your tag I supposed Sublime Text 2.
Ensure you have node.js on System Paths and take a note from the commands and configurations that the description file of sublime-htmlprettify are only for Sublime Text 3
Hope this help you.

Related

Sublime Text 2's phpfmt plugin is not available anymore?

I was used to the phpfmt plugin for Sublime Text, and I'm not able to install it on a fresh installation : the package controller does not seem to find it anymore.
While waiting for a fix, I tried to copy/paste phpfmt folder from Sublime Text's packages folder to my new laptop, but it doesn't seem to work : on the first launch, the plugin is recognized but its directory is deleted.
How can I manually install this plugin ?
As you can see on the Package Control page you linked, the package only supports Sublime Text 3. There's a post on Y Combinator explaining the original author has deleted his version of the package. There is a guide on how to downgrade the package, but I'm not sure that includes Sublime Text 2.

Sublime Text 2/3 - tag multiplier not working on tab

I have just found something on my new Ubuntu installation that has not happened before. I will explain
Normally if i do this code:
div*3 and press tab
I get:
<div></div><div></div><div></div>
But now when I do the same thing, I get nothing. It just "tabs" over the line. This never happened before so if someone knows the answer I would be very thankful.
All this is happening with Emmet already installed
Sublime Text 3: 3059
Ubuntu 12.04 64 Bits
Same is also happening on Sublime Text2.
Sublime Text does not come with the Emmet package by default. You will need to install Package Control first - remember that there are different versions for ST2 and ST3. After it has been installed and you've restarted Sublime Text, open the Command Palette with CtrlShiftP, search for Package Control: Install Package, type in emmet, hit Enter, and it will be installed for you.

Sublime Text 3 - Sublime Linter 3 - Why isn't "HTML Tidy" working?

I'm a brand new coder trying to wean myself off of the Codecademy web environment. I'm using Sublime Text 3 in tandem with Sublime Linter 3 in order to approximate the real-time error-checking to which I've become accustomed from Codecademy's site.
I know that each linter needs to be installed separately in ST3 and I've successfully integrated "csslint" and "jshint". Both work properly.
Now, I'm trying to get an html linter to error-check my html code and I can only seem to find "HTML Tidy", which I have installed via package control. Unlike the aforementioned linters, which simply require a pre-defined command line string for input at terminal, online tutorials have me installing "HTML tidy" via a winrar executable.
Now I am regrouping and would greatly appreciate any feedback you can provide that might move me incrementally closer to having a working HTML linter. I am using a windows xp computer. Many kind thanks for your help.
According to the Installation Instructions for the plugin, there is a Windows binary for Tidy available here.
For some background, Tidy is a command line tool that comes pre-installed with Mac and Linux but not Windows. Downloading the binary mentioned here and placing it in your path will allow it to be run. To check where it should be placed, run echo %path% from the command line.
Once that is there it will work. To see the available arguments to be run with Tidy, run tidy -help from the command line. These arguments can be added to "args" linter settings.
Just copy tiny.exe to folder C:\Windows\System32\, and restart ST3.

How to install Sublime Text 2 packages via PackageControl from shell

I'm writing a post-install script for my Ubuntu 12.04. The thing I need is to install PackageControl and all the other importent packages to Sublime Text 2 via just installed PackageControl from the shell. How can I do it? Give me some examples, please.
Thank you for your time!
You could try to write your own Code based on PackageControl to support Shell-Access, but that would overly complicate the Plugin-Installation-Process, since
Package-Installation in Sublime Text 2 is nothing more than putting files in its Packages-Directory.
I assume that you want to do this because you want to install Sublime Text on multiple PCs without the hassle of doing manual downloads from every PC.
Just create a fresh Sublime Text 2 Installation, install the Packages you need, and copy the Configuration-directory to each PC. The Configuration is in
~/.config/sublime-text-2
Copying this folder to every PC will copy the Plugins, too.

Sublime Text 2 build command ignores the shebang

The Sublime text 2.0.1 (Mac OSX) build command ignores the shebang line a the top of my python file.
The shebang line has the full path to my python 3.2 installation :
#!/usr/local/bin/python3
However the python version being used is always 2.7.2. I'm maintaining code for both 2.7 and 3.2 and so must rely on the shebang line to be used.
Is there a way to configure the Sublime text 2 build system to look at the shebang?
Sublime does not use the shebang to determine the execution, it uses your build rule. You could customize the Python build rule to add variants for python2 and python3.
Official instructions for adding build variants.
Simplified example of build variants from another SO question.
Note that with build variants, the default is run by Command+B (Mac) or Control+B (Windows and Linux). The second variant can be run Command+Shift+B (Mac) or Control+Shift+B (Windows and Linux).
Have a look at Sublime Text Shebang plugin.
It adds a few commands that allow to run scripts, based on the shebang line, but the output will be placed on a new buffer, not in the console.