Format document as in organize indentation of tags.
It does not, but it's been said that ColdFusion Builder 2 (Storm) will have one:
http://www.coldfusionjedi.com/index.cfm/2010/10/27/ColdFusion-Builder-2-Storm--Sneak-Peak
Yes, the newer versions of CFB (2.0 onwards) have this feature, which can be found on right click menu or by CTRL+SHIFT+F in windows. In Mac I guess the shortcut is Cmd+Shift+F.
Related
While working in SSMS - it's a very frequent operation to copy some array of strings separated with a new line (\r\n) and then quote it and separate with a comma (just to use in IN SQL clause). Now I have to hold ALT key and do a vertical selection. I would like to develop an add-in to SSMS and assign it to hotkeys, but actually there is no info at all for the modern SSMS (starting with 17 version) how to do this.
There is a lot docs how to develop extensions for VS, but no for SSMS.
I realize this not a SO question, but don't know where to ask - maybe there is some doc how to develop SSMS extensions starting from v17?
P.S. Maybe SSMS already have an extension to quote and separate with commas strings selected?
EDIT:
Ok, I made an extension and it works well with VS, have no idea how to "move" it into SSMS
The idea is to create VSIX project using Visual Studio, compile it and copy to SSMS extension folder.
After that you need to configure SSMS to skip validation for 'unknown' VSIX extensions.
I recommend to check this approach:
https://github.com/benlaan/sqlformat
Tutorial from MS:
https://learn.microsoft.com/en-in/visualstudio/extensibility/extensibility-hello-world?view=vs-2017
Code-project tutorial:
https://www.codeproject.com/Articles/1243356/Create-Your-Own-SQL-Server-Management-Studio-SSMS
I'm using SAS Enterprise Guide 5.1.
My window looks like this:
The text is huge - I'd like to zoom out so I can see more of the code in my program (obviously this one is just a placeholder).
How can I control the level of zoom?
I tried using ctrl and the mouse-wheel. No luck. I've trawled through toolbar options and found nothing. The solution here requires changing Windows Settings - unfortunately that is not an option for me.
I don't think there's a dynamic zoom option. What I do is customize the font to make it smaller (and more aesthetically pleasing):
Tools
Options
SAS Programs
Editor Options
Appearance
gets you there, then select Lucida Console 9pt as your font, or whatever you find best for you.
Control-mouse wheel works as of Enterprise Guide 7.12, so ask your IT department for an upgrade!
I have blog and I want to show codes on the sublimetext editor like that also I want to choice language and it changes color according to the language.
How can I do that?
You can use ExportHtml sublime plugin to export syntax highlighted code to html and paste it in your blog.
Perhaps take a look at:
http://code.google.com/p/django-syntax-highlight/
It is not 'embedding SublimeText' as per your question, but seems to provide a library that provides some decent syntax highlighting functionality. It uses http://pygments.org/
Sublime Text 2 is not a Javascript editor - you cannot embed it in webpages.
For edit - what you can embed:
ACE http://ace.ajax.org/
And some more: http://en.wikipedia.org/wiki/Comparison_of_JavaScript-based_source_code_editors
For view - syntax hihglighting
Use Google code prettify http://code.google.com/p/google-code-prettify/
I use CFEclipse for most of my projects and heavy lifting but sometimes I find the need to do a quick fix on pages outside the project scope that is easier to accomplish in a simple text editor.
I have googled but can't seem to find an answer so either a link to a download or a link to how to build my own would be awesome. thanks.
Update: Brien Malone's answer below along with charlie arehart's comments are what people should use at this point as nppColdFusion is no longer maintained as of 23 Sept 2011.
Disregard
nppColdFusion is actively maintained
In notepadd ++, go to 'Plugins'> 'Plugin Manager'> 'show plugin manager'. 'Coldfusion Lexer' is listed as available plugin
This question is a few years old now, and unfortunately, the accepted answer involving nppColdFusion is no longer valid because the plug-in doesn't work with NP++ after version 5.x.x and is not being maintained. (It stopped working when Notepad++ switched their plug-in hooking mechanism in version 6.x.x)
The Notepad++ site points to a library of nearly every language highlighter available:
http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=User_Defined_Language_Files
ColdFusion (specifically CF9) is listed:
http://notepad-plus.sourceforge.net/commun/userDefinedLang/userDefineLang_CF9.xml
It's not as good as a full plug-in like nppColdFusion, but it is better than pages of black text.
Just a comment about Tony's answer (Aug 22 '14 at 13:00) : he wrote "In notepadd ++, go to 'Plugins'> 'Plugin Manager'> 'show plugin manager'."
However, in ver. 6.8 (maybe since before), there's no "Plugins" menu item on the menu bar. What I had to do is:
1- From the User Defined Language Page
http://docs.notepad-plus-plus.org/index.php?title=User_Defined_Language_Files
Download the ColdFusion User Defined Language file
http://notepad-plus.sourceforge.net/commun/userDefinedLang/userDefineLang_CF9.xml
Into the Notepad++ Folder
2- From the User Defined Language panel, import that file:
Language > Define your language... then press the Import button
ColdFusion will then appear at the bottom of the Language menu item selection list, and NotePad++ will automatically use it for any .CF file you open.
This link might help: http://howardscholz.wordpress.com/2007/06/01/notepad-support-for-coldfusion-8/
Disclaimer: I haven't tried it myself.
I found that nppColdFusion was working well, until I updated NP++ to version 7.6.6. I have tried just about everything to get it working, but to no avail.
I tried Delire Web's solution and it worked perfectly.
The different formatting (font and background colors) takes a bit of getting used to though.
'Smart Tabs' concept allows to automatically insert tab character for block indentation and space characters for in-block formatting. It's described here. Unfortunately, Visual Studio's 'smart tabs' option in text editor settings just indents text on enter press. Same name, completely different and near useless thing :). So, maybe someone knows of a visual studio addin that can change how 'tab' key work so it will insert tab characters and space characters according to rules mentioned above? Any hints are welcome.
Update: I need it for C++. According to comments, ReSharper can do something like this, but only for Basic and C#.
I have mapped the tab-button to Edit.FormatSelection in Visual Studio to achieve this and it works very well for me. I have also remapped the normal functionality of tab so that I still can access them (Edit.InsertTab and Edit.TabLeft).
If no one comes up with an "as-you-type" utility, then Astyle with its convert-tabs and indent=tab options will reformat code after-the-fact.
ReSharper does this pretty well, and is highly configurable.
Have you looked at Visual Assist?
It's been a while since I used it (back on VC++ 6.0!), and I can't see a mention of "Smart Tabs" on the home page, but it might be there somewhere.