Auto-close HTML tags in Komodo Edit? - komodo

Is it possible to turn this on in version 6.1.1? I'm not seeing it...

Turns out there's an app... er... extension for that.
Update: Apparently HTML Toolkit has been discontinued. You can still download it here:
http://community.activestate.com/files/htmltoolkit-1.3.1.2-ko.xpi
Installation instructions on the home page here:
http://www.ohloh.net/p/komodo-html-toolkit

Ancient question, but as of Komodo Edit 7.1 you can disable this wretched feature using Edit -> Preferences -> Code Intelligence -> Automatically Insert end tag when typing start tag in HTML/XML documents.

Related

Plugin for Indentation in Sublime Text 3 [duplicate]

I've got some poorly-formatted HTML code that I'd like to reformat. Is there a command that will automatically reformat HTML code in Sublime Text 2 so it looks better and is easier to read?
You don't need any plugins to do this.
Just select all lines (CTRL+A) and then from the menu select Edit → Line → Reindent.
This will work if your file is saved with an extension that contains HTML like .html or .php.
If you do this often, you may find this key mapping useful:
{ "keys": ["ctrl+shift+r"], "command": "reindent" , "args": { "single_line": false } }
If your file is not saved (e.g. you just pasted in a snippet to a new window), you can manually set the language for indentation by selecting the menu View → Syntax → language of choice before selecting the reindent option.
There are half a dozen or so ways to format HTML in Sublime. I've tested each of the most popular plugins (see the writeup I did on my blog for full details), but here's a quick overview of some of the most popular options:
Reindent command
Pros:
Ships with Sublime, so no plugin install needed
Cons:
Doesn't delete extra blank lines
Can't handle minified HTML, lines with multiple open tags
Doesn't properly format <script> blocks
Tag
Pros:
Supports ST2/ST3
Removes extra blank lines
No binary dependencies
Cons:
Chokes on PHP tags
Doesn't handle <script> blocks correctly
HTMLTidy
Pros:
Handles PHP tags
Some settings to tweak formatting
Cons:
Requires PHP (falls back to web service)
ST2 only
Abandoned?
HTMLBeautify
Pros:
Supports ST2/ST3
Simple and no binaray dependencies
Support for OS X, Win and Linux
Cons:
Chokes a bit with inline comments
Does not expand minimized or compressed code
HTML-CSS-JS Prettify
Pros:
Supports ST2/ST3
Handles HTML, CSS, JS
Great integration with Sublime's menus
Highly customizable
Per-project settings
Format on save option
Cons:
Requires Node.js
Not great for embedded PHP
Which is best?
HTML-CSS-JS Prettify is the winner in my book. Lots of great features, not much to complain about.
The only package I've been able to find is Tag.
You can install it using the package control. https://sublime.wbond.net
After installing package control. Go to package control (Preferences -> Package Control) then type install, hit enter. Then type tag and hit enter.
After installing Tag, highlight the text and press the shortcut Ctrl+Alt+F.
I recommend this plugin: HTML/CSS/JS Prettify, It really works.
After the installation, just select the code and press CTRL+SHIFT+H.
Done!
Just a general tip. What I did to auto-tidy up my HTML, was install the package HTML_Tidy, and then add the following keybinding to the default settings (which I use):
{ "keys": ["enter"], "command": "html_tidy" },
this runs HTML Tidy with every enter. There may be drawbacks to this, I'm quite new to Sublime myself, but it seems to do what I want :)
Altough the question is for HTML, I would also additionally like to give info about how to auto-format your Javascript code for Sublime Text 2;
You can select all your code(CTRL+A) and use the in-app functionality, reindent(Edit -> Line -> Reindent) or you can use JsFormat formatting plugin for Sublime Text 2 if you would like to have more customizable settings on how to format your code to addition to the Sublime Text's default tab/indent settings.
https://github.com/jdc0589/JsFormat
You can easily install JsFormat with using Package Control (Preferences -> Package Control) Open package control then type install, hit ENTER. Then type js format and hit ENTER, you're done.
(The package controller will show the status of the installation with success and errors on the bottom left bar of Sublime)
Add the following line to your key bindings (Preferences -> Key Bindings User)
{ "keys": ["ctrl+alt+2"], "command": "js_format"}
I'm using CTRL+ALT+2, you can change this shortcut key whatever you want to. So far, JsFormat is a good plugin, worth to try it!
Hope this will help someone.
For me, the HTML Prettify solution was extremely simple. I went to the HTML Prettify page.
Needed the Sublime Package Manager
Followed the Instructions for installing the package manager here
typed CMD+SHIFT+P to bring up the menu
Typed prettify
Chose the HTML prettify selection in the menu
Boom. Done. Looks great
There's a plugin called SublimeHtmlTidy which works pretty well
https://github.com/welovewordpress/SublimeHtmlTidy
Simply go to
Edit -> Tag -> Auto-format tags on document
I created a Package called HTMLBeautify that does a decent job of reformatting HTML. I based it off of a Perl script I found back in 1997—I updated it to work with all the new fangled modern tags. :)
Check it out and let me know what you think!
https://github.com/rareyman/HTMLBeautify
I think this is what you're looking for:
https://github.com/victorporof/Sublime-HTMLPrettify
I am yet to have the privilege to comment so this is simply additional information related to #peter's answer above answer.
I found HTML did not align as expected if IE conditional comments in the header were not completely in-line e.g. flush to the left:
<!--[if lt IE 7]>
<p class='chromeframe'>Your browser is <em>unsupported</em>. Upgrade to a different browser or install Google Chrome Frame to experience this site.</p>
<![endif]-->
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
There is a nice open source CodeFormatter plugin, which(along reindenting) can beautify dirty code even all of it is in single line.
I'm using tidy together with custom build system to prettify HTML.
I have HTMLTidy.sublime-build in my Packages/User/ directory:
{
"cmd": ["tidy", "-config", "$packages/User/tidy_config.cfg", "$file"]
}
and tidy_config.cfg file in the same directory:
indent: auto
tab-size: 4
show-warnings: no
write-back: yes
quiet: yes
indent-cdata: yes
tidy-mark: no
wrap: 0
And just select build system and press CTRL+B or CMD+B to reformat file content. One minor issue with that is that ST2 does not automatically reload the file so to see the results you have to switch to some other file and back (or to other application and back).
On Mac I've used macports to install tidy, on Windows you'd have to download it yourself and specify working directory in the build system, where tidy is located:
"working_dir": "c:\\HTMLTidy\\"
or add it to the PATH.
you can set shortcut key F12 easy!!!
{ "keys": ["f12"], "command": "reindent" , "args": { "single_line": false } }
see detail here.
HTML-CSS-JS Prettify - Hands down the best.
Install Package Control
⌘ + left shift + p (or ctrl + alt + left shift + p) -> Package Control: Install Package
Enter HTML-CSS-JS Prettify
Install node
Restart Sublime Text
Enjoy.

Does Komodo edit have a quick format button?

Is there a keyboard shortcut or menu item I'm not seeing somewhere to format my html in Komodo Edit?
I'm mostly worried about indentation. I have about 1500 lines of jumbled mess from a client I need to clean up before I can start updating his page.
Code formatters (including HTML) are included with the paid version of Komodo, KomodoIDE, but not in the free version, Komodo Edit.
turns out that the paid version does have code formatters, but the free version can have them to, you just have to a: script one yourself (oooo fun!) or b: download one thats already made and ready to go.

How To Change Color Workspace in Adobe Dreamweaver Cs5?

i useing as adobe dreamweaver ; i will change color the workspace (environment code editor)
for ex: I want to be black environment code;
thanks;
sorry for english!
Are you talking about the Skin color of Dreamweaver. You can't. Check out the website here:
http://help.adobe.com/en_US/dreamweaver/cs/using/WScbb6b82af5544594822510a94ae8d65-7f82a.html#WS8599BC5C-3E44-406c-9288-C3B3BBEB5E88
Note (From Adobe.com): The user interface has been simplified in Dreamweaver CC and later. As a result, you may not find some of the options described in this article in Dreamweaver CC and later. For more information, see this article.
You can change colors in Edit -> Preferences -> Code Coloring
or
http://sramekdesign.com/dreamweaver/dark-coding-colorization-for-dreamweaver/
Just in case you are using a macbook,
Command+U
to open the dialog box for Preferences.
Unfortunately, there is currently no option to darken the UI, but there it is a feature request.
Please vote for the request here: https://forums.adobe.com/ideas/3824 so we might expect this functionality in the future, so we could save our eyes a bit ;)

PHP Code hinting not working in Dreamweaver CS5

I'm using Adobe Dreamweaver CS5, I have been using this for a long time, but this is the first time I am facing such issue.
Some of the code hintings are disbaled, like $_SERVER, $_REQUEST, etc..
Is there any option to enable these hints? I tried preference option though its disabled.
I am missing exactly this:
(source: killersites.com)
Go to menu Edit -> Preferences -> Code Hints and then disable jquery code 1.7.
PHP code hinting is turned on in DW options correct? (sorry can't post pic as comment)
Go to "preferences->code hints" and disable jquery code 1.7 and it works. :)
you can solve the error by just simply disabling the jquery hinting.
Don't exclude jquery, the solution is just to increase the delay, just 0.5.

wysiwyg editor for aptana studio beginners

I am a new web designer. I have learned HTML5 and CSS3. However, I find it difficult to burst forward without a WYSIWYG editor.
I want to be able to type in the code I have learned, or carefully gathered, but I also want to be able to see it working, immediately, so that I can be assured that I am on the right track.
QUESTION: Is there a way for me to combine Aptana Studio (or Notepad++) with a WYSIWYG view, as I type in the code and build the new website?
Please help me. Thank you for your time.
Currently, no way to combine Aptana Studio(or Notepad++) has get WYSIWYG editor. But you can try the others free WYSIWYG editors to fulfill your desire. Below software may be very useful for you.
Nvu
Amaya
pagebreeze
BlueGriffon
Since this is a popular post:
As of Dec 2016, the most popular and useful solution seems to be Adobe Brackets.
It has the Live Preview feature, where you can see changes in browser immediately as you type.

Resources