I'm having trouble with Emmet in Atom. When I type "lorum80" in an html file, I expect Emmet to generate 80 words of Lorum Ipsum, per its documentation. But instead, it outputs "lorum80" as a tag
<lorum80></lorum80>
Any thoughts how to fix this?
To what I found there was nothing stating in Emmet that it generates lorum.
I could recommend using the package Lorem for generating this kind of text. Has plenty of options for different formats.
Related
I'm trying to use the Atom editor on Windows machine for HTML authoring.
However, I can't make the HTML snippets work.
Regular completion of tags is working, but trying to invoke, for example, html snippet by pressing Tab results in inserting the Tab character.
Also, the only available snippets for HTML grammar shown on Alt+Shift+S are legal and lorem.
Any ideas how to fix this or where to look for the problem?
What is the best solution for static, multilingual pages in Symfony2?
I faced the same question not long before, and since I needed a quick fix I did the following:
Used the JMSTranslationBundle, and the WebUI in it,
every static page had its own key. ( Something like: {{'staticContent_about'|trans}} ),
Since these pages contained html, but I didn't want the translators to bother with that, I made up some custom tags, and created an extension to translate that.
Example:
lorem ipsum...
lorem ipsum...
lorem ipsum...
<more>read more<more>
That would be transformed thanks to the extension to the following:
lorem ipsum...
lorem ipsum...
lorem ipsum...
<a href="some-generated-path">read more<a>
Now this solution is pretty hacky, I don't like it, and I think there must be an elegant and simple way of doing this.
To summarise, what I'm looking for is:
A way to rapidly create static pages,
It should contain a markup that is simple, so the translators could handle it,
Sandboxing the static pages, so just the allowed tags could be used,
Handling of malformed html, if for example: the translator forgot an end tag.
Thanks in advance!
I'm currently trying to learn Sublime Text 2, and so far I'm very impressed. But there are some things that I need compared to what I used for editor before (Microsoft Expression Web).
When I had a HTML file and had a class for a div or something. Then I wrote fx:
<div class="classname"></div>
Then I could CTRL + click on the classname, and it would instantly take me to the CSS file where this class was located, and to the line where it was, and I was able to edit it right away, instead of going into the CSS file and make a search.
Is this possible in Sublime Text 2 as well, or...?
Thanks in advance.
Unfortunately, there is no built in feature that does what you require.
But luckily there is a dev who created a plug-in, that does exactly what you want.
Take a look here: Goto CSS Declaration
In addition to the "Goto CSS Declaration" plug-in, that No Reply linked to in their answer, you can press ctrl+P, which let's you jump around in files.
Unofficial Documentation for more details
I've installed the Web Essential for VS 2012 and trying out ZenCoding in ASP.net webforms project specifically in .ascx. However, it did not produce any HTML code. For example, this "ul>li*5>lorem3" produced nothing but "ul>li*5>lorem3" on the generated .aspx
Is it possible to use Zen Coding with ASP.net webforms? I can't find any answers to this problem via Google.
It sounds like you have typed "ul>li*5>lorem3" in the .aspx and compiled, expecting the expression to transform into HTML on compile. Zen Coding (aka Emmet) expressions do not compile to HTML when the .aspx is compiled, you must expand the expression yourself by setting the caret at the end of it and pressing Tab.
It will give the following result:
<ul>
<li>Lorem ipsum dolor.</li>
<li>Sit amet, consectetur.</li>
<li>Adipiscing elit fusce.</li>
<li>Vel sapien elit.</li>
<li>In malesuada semper.</li>
</ul>
Emmet only works for regular HTML tags though, no support for ASP.NET controls as far as I can see.
More information (not Visual Studio-specific, but Emmet in general): http://coding.smashingmagazine.com/2013/03/26/goodbye-zen-coding-hello-emmet/
I receive HTML pages from our creative team, and then use those to build aspx pages. One challenge I frequently face is getting the HTML I spit out to match theirs exactly. I almost always end up screwing up the nesting of <div>s between my page and the master pages.
Does anyone know of a tool that will help in this situation -- something that will compare 2 pages and output the structural differences? I can't use a standard diff tool, because IDs change from what I receive from creative, text replaces lorem ipsum, etc..
You can use HTMLTidy to convert the HTML to well-formed XML so you can use XML Diff, as Gulzar suggested.
tidy -asxml index.html
If out output XML compliant HTML. Or at least translate your HTML product into XML compliancy, you at least could then XSL your output to remove the content and id tags. Apply the same transformation to their html, and then compare.
I was thinking on lines of XML Diff since HTML can be represented as an XML Document.
The challenge with HTML is that it might not be always well formed. Found one more here showing how to use XMLDiff class.
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.
winmerge is a good visual diff program