Zen Coding (Selected Text) in Aptana Studio 3 - aptana

How can I do zen-coding with selected text? I was able to do it in Aptana Studio 2 but now I can't do it Studio 3..
I can type p*3, select that and run 'Expand Abbreviation' -- that works. it gives me 3 sets of p tags.
But I can't select an existing text and do zen-coding on that text.

I think you are using built-in Aptana plugin, which has limited features support. Try to install Zen Coding for Eclipse plugin: https://github.com/sergeche/eclipse-zencoding
This plugin features “Expand Abbreviation by Tab key” option, as well as expansion of selected text.

Related

Upgrading Bootstrap

I'm upgrading bootstrap 3.3.6 to 3.4.1. First need to first I need to find all the places(HTML elements) that use bootstrap 3.3.6 so I can do my regression testing covering those elements. Is there a way I can find all the bootstrap references?
This is a .net application with razor views
Thanks
You can do it via search text feature in your IDE like CTRL + Shift + F in visual Studio and Rider (assume it set Visual Studio Key-map), Which provides you with tools such :
Preview of codes before navigate to it.
Search a term in specific files (.cs, .cs-html, ...).
Search a term with regular expression.
...
For example assume we need to find all div which is have row class ( my IDE is rider), so all you can do, after open "find in files" popup, is just set simple things like image below:

Visual Composer not parsing

I just installed a theme I bought for wordpress and I installed dummy data.
The istructions said I should install the visual composer plugin so I am assuming that is was built that way.
But when I open pages that it came with, it doesn't parse nicely.
i have 1 page, that when I open it in visual composer the entire page shows up in 1 box that says raw html data.
But when i try to view it in classic mode, all I saw is gibberish letters and numbers
There is another page, that looks like the rows are split properly. But all the boxes say 'text box' instead it should be a bannervideo editing box.
when I view it in classic mode , it looks more like visual composer code
[vc_row][vc_column][bannervideo title="Atena Excellence in teaching" desc="College / University / Campus"
text1="Take a tour" link1="#" text2="View courses" link2="#"
play="Play video" image="184" link="https://vimeo.com/20370747" linkmp4="/intro.mp4" linkogv="huploads/2016/01/intro.ogv"]
[/vc_column][/vc_row]
Did I do something wrong when importing dummy data, or is it a problem with my visual composer?
or am I supposed to be using a different rendering plugin
Because your theme miss map for 'bannervideo' shortcode. You should contact to theme author to fix that or provide plugin define the map for that element.
Other option for page builder is King Composer. It is works well with any website https://wordpress.org/plugins/kingcomposer/

Zen Coding worng abbreviations in Aptana

Hello I am using Zen Coding in Aptana, but some abbreviations are not working correctly.
When I type w TAB I get white-space: instead of width:
Can someone tell me how I can set up correct abbreviations?
Aptanas’ Tab key handler takes precedence over Zen Codings’ one (btw, Zen Coding was renamed to Emmet recently: https://github.com/emmetio/emmet-eclipse).
So in your case, you’re actually expanding Aptana snippet, not Emmet one.
You should either remove all Aptana snippets to allow Emmet to handle them or configure (via Preferences > Keys) and use another shortcut to explicitly expand Emmet abbreviations.

Is it possible to change CSS Validation scheme in VS2010

I'm editing a simple CSS file in VS2010 and the editor seems to have a rather limited understanding of CSS, for example:
#my-rule {
position:relative;
}
generates a warning: Validation(CSS 1.0): 'position' is not a known CSS property name
I'm guessing that there is an option some where to change the CSS validation to CSS 2.1 or some thing close, but can't for the life of me find it.
If you want to validate for CSS 3.0 in Visual Studio 2010, you need to install the Visual Studio 2010 Service Pack 1 and then install the "CSS 3 Intellisense Schema"
http://visualstudiogallery.msdn.microsoft.com/7211bcac-091b-4a32-be2d-e797be0db210/view/Discussions
Then you will see "CSS 3.0" in the drop down that easwee mentioned.
You have a dropdown in the top menu where you can switch the css validation. It's called Cascading stylesheet version for validation. If you can't see it right click on the menu and check Style sheet so it will show.

How do you enable error detection for CSS files in Visual Studio 2010?

How do you enable error dectection for CSS files in Visual Studio 2010? It's said to be in tools options, but I can't seem to find it.
In Visual Studio, open the Tools menu and select Options
Expand the Text Editor group, then the CSS group.
Click on Miscellaneous and you'll see the option to enable Detect Errors there.
Make sure in Visual Studio 2010 IDE> View>Toolbars>Stylesheet is checked to show Stylesheet toolbar.
IDE will indicate errors in two ways.
01) most importantly don't forget VS Error List window.It will show css errors in warnings section.you can then navigate to error by double clicking the error itself through the window.
02) it will show squiglies in erroneous CSS styles
Not sure if this is what you're asking for, but Visual Studio comes with a few CSS validation templates. If you select from the top menu View > Toolbars > Style Sheet, you'll see a little dropdown in the top toolbar. My VS 2010 lets me choose "Internet Explorer 6.0, CSS 1.0, CSS 2.0 and CSS 2.1"
If you write a property that's not valid for the currently selected CSS version, Visual Studio will put a little green line underneath it and complain about it not being a known CSS property etc.
This happened to me and CTRL+K+D gave me that same error even when detection was on. The solution was to look in the 'Errors' tab in Studio and to look at just the warnings. Scroll down to the CSS file related issues and low and behold your syntax error will be listed there.
Mine turned out to be two semi-colons ';;'
Hope this helps anyone else :)

Resources