I want some way to make an autoreplace instance in Sublime Text 3, so, when i write a specific character or string, Sublime automatically changes it to another string (predefined by me)
I'm not looking for a snipplet where you have to press tab or similar, i want something that changes it automatically.
Is it possible via some keybind or plugin?
Thanks in advance!
Take a look at SublimeCodeIntel which provide similar functionality to IntelliSense
https://github.com/SublimeCodeIntel/SublimeCodeIntel
But there are a great many other plugins which can assist with source editing - its very subjective and dependent on the language used.
Good luck
Related
So I have a few hundred pages that need their navigation bars updated. I've looked in sublime text, aptana, notepad++ and used the search here but wasn't able to find a simple solution.
All I wish to do is add to the following code so it says
Home
Help
Other
Rather than
Home
Help
I'm using Windows if this makes a difference. I'm aware of the built in find and replace features of aptana and sublime etc but it seems unable add new code to those 100 pages which would be preferred over using any tricks or browser hacks, but I will be willing use those tricks if absolutely necessary.
Due to certain requirements, I'm not able to use php includes ,javascript or jquery and similar . Thanks for any suggestions in advance.
With Sublime Text you have the option to find in all files:
You can then choose a folder to search in, what text to search for and what to replace the found text with.
All files in the chosen folder will be searched.
I've been using sublime text 2 just like every other day and thought about improving a bit the readability of my code.
I'm seriously looking for a simple solution.
I'm not very familiar with advanced sublime tools (I mean, I know how to install packages but I do not know how to write one).
What would be the simples way to make it so that every 2nd row has a background color like 10% darker/lighter than the 1st ones?
Is there some good package which already has this implemented or how hard would it be to make a sublime script which does this for me?
I've never seen anything like this in Sublime Text.
As a theme developer - I know we don't have even/odd selectors to change the colour.
You may be able to create a custom syntax with a package,but again I've never seen it.
As for readability - that is very important. I find these few settings to help with readability:
"line_padding_bottom": 1,
"line_padding_top": 1,
"highlight_line": true,
"highlight_modified_tabs": true,
As well spend some time finding the perfect programming font and a colour scheme
My sublime text user preference file get rewritten. (user/Preferences.sublime-settings)
I wrote some comments about the settings that I made (So that I can remember next time I look at the user preference file.) But it removed all the comments and reshuffle all the settings. Is it a normal behavior?
Can I keep my comments in the user preference file? I search through stackoverflow and could not find similar question.
Yes, this is normal behavior (unfortunately), and there is no way around it - it is hard-coded into Sublime. The same behavior exists in Sublime Text 3 as well. The issue has already been reported to the unofficial Sublime Text Issues repository, so the community is aware of it, but whether or not Sublime's author takes notice of it and/or fixes it is up to him alone.
I am new to web development and just trying to add spelling suggestion to a textarea. I really don't know what I am going to need for this, need to write the code myself or use a third party library etc. Can someone suggest me how to add this functionality to a simple HTML page containing a textarea. I want when I write a misspelled word in text area, some suggestions matching that word should appear in dropdown.
Well autocorrect in the web page can be achieved by JavaScript for sure.
There are some nice frameworks for this, probably you could see this:
https://github.com/sanisoft/jQuery-auto-correct
For only spellchecking (despite built-in browser checking):
http://www.javascriptspellcheck.com/JQuery_SpellCheck_Plugin
I am looking for a tool to display/track changes in text a little bit like it is done on stackoverflow when a question is edited. Does anybody know of a tool to achieve that?
You may want to use diff for that.
If you can use PHP on your server there's a handy pear package to perform the task you require. Here's an example :
https://web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/5100-10878_11-6174867.html
There's actually a actually Javascript implementations outhere as well, not tested though:
http://ejohn.org/projects/javascript-diff-algorithm/
http://aignes.net/
Commercial tool though. I have no idea of a F/OSS alternative.
A copy of my own answer from here.
What about DaisyDiff (Java and PHP vesions available).
Following features are really nice:
Works with badly formed HTML that can be found "in the wild".
The diffing is more specialized in HTML than XML tree differs. Changing part of a text node will not cause the entire node to be changed.
In addition to the default visual diff, HTML source can be diffed coherently.
Provides easy to understand descriptions of the changes.
The default GUI allows easy browsing of the modifications through keyboard shortcuts and links.