I know how to use xmllint from the command line for validating an xml file against an XSD:
xmllint --schema exampleschema.xsd example.xml
Now I downloaded and installed sublimelinter and the xmllint plugin for my sublime text editor.
However, I can't figure out how to run xmllint from sublime text. What do I have to do to have an xml-file validated against a schema?
First, you need to ensure that you're using Package Control to install all your plugins. xmllint is only for Sublime Text 2, and should not be used.
Along with SublimeLinter, you need to install SublimeLinter-xmllint. Make sure you read the full documentation both for SublimeLinter and SublimeLinter-xmllint to ensure everything, including paths, are set up correctly. You can then configure your desired command-line arguments using linter settings.
Related
I'm trying to get sublime to highlight smalltalk .st files but am running into some trouble.
A quick search found this package, but after adding the repository like it says in the README, I don't see the package that its supposed to add when doing Package Control: install package.
I also tried looking into this one but am completely lost when it says This syntax file can be converted to .tmLanguage using PackageDev 'Convert to PList'. Place the converted file in Packages/Smalltalk/Smalltalk.tmLanguage and reopen any .st file.
Can anybody help me out please? I'm running ST3 on MacOSX.
The installtion instructions using Package Control did not work for me either, but you can take the language file, Smalltalk.tmLanguage, from Smalltalk syntax for Sublime Text 3 and use the manual installation instructions you cited:
Place the file in Packages/Smalltalk/Smalltalk.tmLanguage
As you asked about macOS, on macOS this means:
/Users/<your user name>/Library/Application Support/Sublime Text 3/Packages/Smalltalk/Smalltalk.tmLanguage
The Library folder might be hidden by default. Use the Terminal or Finder's Go ▶︎ Go To Folder… to access it.
For Smalltalk/X you can download a highlighting package at - sublime highlighting for smalltalk/X called Smalltalk.sublime-package.
You can copy it to the path provided by #MartinW above.
I am trying to use jshint for JavaScript programming on Sublime Text 3(Linux Mint). I have installed jshint through node and I am able to access the jshint command using the terminal.
Afterwards I have installed the SublimeLinter-jshint package in Sublime Text.
However, when I am trying to use the build feature, I am getting a report that there is no build system. I have seen the options for build systems in the menu and there is no option for jshint.
All the websites I have seen show that jshint will be automatically activated. Am I missing any step here?
The sublimelinter-jshint is a plugin for the sublimelinter package. It only provides a interface to the jshint. You still need the sublimelinter. https://packagecontrol.io/packages/SublimeLinter
It can run in several modes to lint in background, on save, or when explicitly stated. I don't think it uses the sublime text build system.
When I'm coding in HTML and use input tag, sublime autocompletion gives me <input></input>. I'd love sublime gives me <input />.
How can I change this? (my sublime is version 3)
I saw this:
How to change default code snippets in Sublime Text 3?
and this video (portuguese audio):
https://www.youtube.com/watch?v=9iTu3C9FzX4
Sublime's HTML autocompletions are done in a Python script.
Install PackageResourceViewer using Package Control (if it isn't already installed)
From the Command Palette, select PackageResourceViewer - Open Resource
Select HTML
Select html_completions.py
Find the line ('input\tTag', 'input type=\"$1\" name=\"$2\">'),
Change it to ('input\tTag', 'input type=\"$1\" name=\"$2\" />'),
Save the file
I'm learning Rust and can't get the Cargo command working; I'm not sure if it's my mistake or an error.
This is what I typed in the /src directory:
src [path]$ editor Cargo.toml
The reply I got was:
-bash: editor: command not found
If you literally typed editor Cargo.toml, then you're trying to run a program called editor, with an argument called Cargo.toml. The message you get is the system letting you know that you don't have such a program.
To do what you want to do you can either:
Write open -t Cargo.toml in MacOsX, which opens the file with the system's default text editor (TextEdit, or whatever you may have changed it to).
Or you can bypass this and open the file directly from your favorite editor's window; the intent here is for you to open and edit the file with any text editor you have installed.
This means you don't have the editor program installed on your system. Depending on your environment, you might try installing it or using another text editor (say, vim for unix).
I've read the docs and tried to install the binaries manually by, both in
C:\Users\Username\Sublime Text Build 3065\Data\Installed Packages\PyV8
and
C:\Users\Username\Sublime Text Build 3065\Data\Packages\PyV8
I've tried the "For Sublime Text 2 (python 2.6) version and also the "For Sublime Text 3 (Python 3.3) version. I am running python 2.7 so it should be the former, but I tried the latter just in case since it specifies 2.6 and not 2.7.
I continually get the same error despite following the instructions provided online.
Well, this is with Sublime Text 3083, latest emmet and Pyv8 binaries and Python 3.3.0 (it should work with latest Python also)
Install Python and Sublime if you haven't done that yet! ;)
Download emmet-sublime-master.zip at github. Forget Package-Control! In fact if you have emmet installed via Package Control just remove it.
Go to: c:\Users-your user-\AppData\Roaming\Sublime Text 3\Packages\
Create a 'Emmet' folder, respect the caps.
Decompress the emmet-sublime-master.zip inside the Emmet folder.
Download your pyv8 binary at github.
Create a 'PyV8' folder (outside Emmet folder, c:\Users-your user-\AppData\Roaming\Sublime Text 3\Packages).
Inside PyV8 create a folder with the exact same name of the pyv8 binary you just downloaded (example: pyv8-win64-p3)
Decompress the binary there.
Restart Sublime Text 3.
It should work!