Bookmark on Expression
Welcome to MSDN Blogs Sign in | Join | Help

The vast majority of front end web developers that I've met prefer to write their own markup in the code editor rather than let the program generate the markup for them. In fact, it's a point of pride to hand code because WYSIWYG programs have gotten a reputation for bloated code, mangled tags, and undesirable formatting. Of course this was never the case with Expression Web (for reals!) but once you've been burned by any markup generator, it's hard to trust any program with your code.

So when does Expression Web touch your CSS and how can you take control of it (or avoid it all together)? Come, let me show you the ways...

WHEN

Expression Web generates CSS for you only when you:

  1. Use the formatting buttons in the toolbars, for example, these buttons in the Common toolbar:

    some formatting buttons on the Common toolbar


  2. Use the formatting options in dialog boxes, for example, the Paragraph dialog box that appears when you choose Format > Paragraph:

    Paragraph dialog box

  3. Drag in Design view to set the margins, padding, or dimensions of an element, as in the following screenshot in which I'm dragging the shaded area below a heading to set the margin-bottom of the heading:

    dragging in Design view to set margin-bottom property

  4. Use the New Style or Modify Style dialog box:

    Modify Style dialog box

  5. Use the CSS Properties task pane, Apply Styles task pane, or Manage Styles task pane:

    CSS Properties task pane

When you use the features I listed in #4 - 5 (New Style dialog, Modify Style dialog, CSS Properties task pane, Apply Styles task pane, Manage Styles task pane), you are essentially writing CSS by hand, just like in the code editor, and generating whatever CSS you specify. But when you use features #1 - 3 (buttons in toolbar, property dialogs, and setting properties directly in Design view), the CSS that Expression Web generates is subject to options you set in the program.

WHAT

So what kind of CSS does Expression Web generate when you use features #1 - 3? By default, either an inline style or a class, according to the current settings on the CSS tab in the Page Editor Options dialog box (Tools > Page Editor Options):

image

The one exception is the "Page properties on the <body> tag" option, which you can set to either inline styles or "rules". "Rules" means the program will generate a style that uses a tag selector, i.e. the body tag will be the style's selector. (Note to self, file a suggestion to relabel "rules" to something more meaningful!)

WHERE

So where does Expression Web place the styles that the program generates for you when you use features #1 - 3? By default, Expression Web is set to Auto mode (aka Auto Style Application mode). In Auto mode, new styles that Expression Web generates are placed in an embedded style sheet in the head of the page.

What if you want Expression Web to put the new styles in the external CSS file that is attached to your page? I hear a lot of requests for that behavior (and want it myself!) but with versions 1 and 2 of Expression Web there is no way to have new auto-generated styles automatically appear in the external CSS. Keep in mind that this only applies to NEW styles that Expression Web automatically generates for you when you use features #1 - 3. In contrast, new styles that you create from scratch through the New Style dialog box are written wherever you specify, which can be the current page, a new style sheet, or an existing style sheet that's attached to the current page:

Define In drop down menu in New Style dialog box

New Style dialog box

REUSE

So what do you do if you don't want Expression Web to generate a new style and instead want the program to update an existing style whenever you do anything with features #1 - 3? In that case, use Manual mode (aka Manual Style Application mode). In Manual mode, you can have Expression Web target an existing style that's in either your embedded style sheet or an external CSS file that's attached to the page, provided the style already targets the current element.

To turn on Manual mode, open a page, then go to the status bar at the bottom of the program window, right-click Style Application, point to Mode, and select Manual.

Style Application mode menu in the status bar

(Or choose Tools > Page Editor Options, click the CSS tab, and select the Manual Style Application option, and click OK.)

I'll show you how this works using my previous example of dragging in Design view to set the bottom-margin of my heading (h1).

MANUAL STYLE APPLICATION MODE

With the Style Application set to Manual, and my heading (H1) selected in my page, the Style Application toolbar looks like this:

Style Application toolbar set to Manual mode 

When the program is in Manual Style Application mode, the critical option in the Style Application toolbar is the Target Rule setting. Whatever style is selected in the Target Rule option is the style that Expression Web updates when you use any of the features I described in #1 - 3. For example, with my h1 selected in my page, by default the style named #column_l h1 is selected for the Target Rule. That style is selected by default because it has the highest precedence of all the styles that affect the selected h1. If I use any of the features #1 - 3 while that h1 is selected, the style #column_l h1 is updated.

If I want Expression Web to update a different style when I use features #1 - 3 while that h1 is selected, all I need to do is click the Target Rule drop down and select the style I want to update or the type of new style I want created for me. For example, the Target Rule drop down menu lets me select a style named #container h1, a style named h1, or I can choose to have Expression Web create either a new class or inline style, or I can launch the New Style dialog box to create a new style from scratch myself:

styleapp_targetrule

In my current example, the styles happen to be in the style sheet embedded in the current page (hence why "Current Page" appears next to each style in the Target Rule drop down menu). If they were in the external CSS attached to my page, the style sheet's name would appear next to the style instead of "Current Page" and I could still target those styles if I desired.

New users of Expression Web seem to set the program to Manual style application mode because they're under the impression that this mode means that the program will not automatically generate any CSS for them; in fact, Manual mode simply means you can make Expression Web target existing styles that affect the current element instead of generating new styles by default. (Anecdote: during the development of Expression Web version 1, I anticipated that folks would interpret the label "Manual" incorrectly and so suggested it be labeled "Semi-Auto" instead, but that suggestion was rejected in small part because it brings to mind semi-automatic weapons. :)  Regardless, I still think the label would be more meaningful and accurate if changed to Semi-Auto.)

To all of you that prefer to generate your CSS by hand, all you need to do is stay away from features #1 - 3 when using Expression Web and you can rest assured that your CSS is all under your control; just stick to using features #4 - 5 as well as, obviously, a page's Code view editor and the code view of a CSS file. For the rest of you, I hope this post helps illuminate how Expression Web generates CSS for you and the options available to you in the program. So who's editing your CSS? If you're using Expression Web, the options I breezed over in this post ensure YOU are in control of your CSS.

BTW, this post was inspired by Expression Web forum user Bruno Nepomuceno who started a thread to ask how to make Expression Web target his external CSS...thanks Bruno!

http://forums.expression.microsoft.com/en-US/web/thread/73c28363-7f12-497f-94e2-aaa04abe904d

When I first started building websites, I visited webmonkey.com often for its tutorials and to look up stuff but the website appeared to die out several years ago.  Apparently the folks at Wired have resurrected the website this past week as Webmonkey 2.0 BETA:

http://www.webmonkey.com/

As you've surely discovered by now, in the top right corner of Internet Explorer 7 and Firefox is a text box you can use to search the web:

 Wikipedia page in Internet Explorer 7

If you type something in that box and press ENTER, the browser sends the text you entered to your default search engine, such as Google or Live Search. That's pretty straight forward.

But what you may not have noticed is the drop down menu on the right side of the text box:

Internet Explorer 7 search field

If you click the down pointing arrow (not the magnifying glass mind you), you get a drop down menu that enables you to select particular websites to search with that text box. For example, you may be able to select Wikipedia, Ebay, Amazon, etc. Here's my list of search providers:

 image

And more and more websites are providing users with additional search options. For example, when you visit Godaddy.com, their homepage presents you with the option to add GoDaddy search to your browser:

image 

I've been wanting to add the World Wide Web Consortium (W3C) website to the list of search options so that I can quickly look up HTML or CSS properties:

image

I have that website bookmarked, as well as the CSS specs and the HTML specs, and there are search queries you can use to target a particular website, but I've always thought it would be more convenient to do a simple search from that text box at the top of the browser.

Well ask and you shall receive! I emailed all the developers on the Expression Web team and one of the them, Tomas, set me up. So I'm here to share the love with y'all.

We're giving you three options for searching the W3C website, using either Google or Live Search, and you can add as many of these as you'd like. These search options were tested in Internet Explorer 7 and Firefox:

  • Entire W3C website
  • HTML 4 section of the W3C website
  • CSS 2.1 section of the W3C website

To add any of these search options to your browser:

  1. In either Internet Explorer or Firefox, do one or both of the following:
    • To add Google searching of the W3C, click here.
    • To add Live Search of the W3C, click here.

      A page opens in a new browser window.

  2. In the new browser window, click the drop down arrow next to the search text box. If you're in Internet Explorer 7, you first need to point to Add Search Providers . And then in either browser, just select the W3C search you want to add to the menu:

    search text box drop down menu

    You may notice that above the Add Search Providers submenu in IE7 are the three new Google (or Live Search) W3C search options. If you click one of those, you are not adding the option to your browser, instead your are simply selecting a search option for one time use from my page. So be sure to point to one of the options under Add Search Providers.

  3. If you're using Internet Explorer 7, after you select an option, a dialog box appears. Click Add Provider:

    image

    And that's it. For this example, I selected Google Entire W3C, and now that option appears in the list of search options:

    search text box drop down menu

Is that useful to you? Let me know what you think!


So how did Tomas accomplish that? Here's how, in his own words:

There is an OpenSearch standard for doing this. Technically, you need a short static XML document somewhere on the web server that describes your search engine. For example, this is the file for English Wikipedia:

 

<?xml version="1.0"?>

 

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">

 

       <ShortName>Wikipedia (en)</ShortName>

 

       <Description>Wikipedia (en)</Description>

 

       <Image height="16" width="16" type="image/x-icon">http://en.wikipedia.org/favicon.ico</Image>

 

       <Url type="text/html" method="get" template="http://en.wikipedia.org/w/index.php?title=Special:Search&amp;search={searchTerms}"/>

 

       <Url type="application/x-suggestions+json" method="GET" template="http://en.wikipedia.org/w/api.php?action=opensearch&amp;search={searchTerms}&amp;namespace=0"/>

 

</OpenSearchDescription>

 

 

 

Browsers have an “autodiscovery” mechanism – you provide a <link> on your page (in <head>) and IE7/FF2 should do something visually to give you a hint that you have a search provider.

 

<link rel="search" href=http://example.com/opensearchdescription.xml type="application/opensearchdescription+xml" title="Content Search" />

 

Optionally, you can provide a little JavaScript on your page to add a search provider – this way you can create your own active links, buttons or ads directly on your page.

 

window.external.AddSearchProvider("http://example.org/opensearchdescription.xml");

 

Take a look at the best practices for other tips and hints.

 

http://www.opensearch.org/Documentation/Developer_best_practices_guide

 

Tom

Microsoft will be releasing a special Joy Division edition version of the Zune music player to coincide with the release of the Joy Division documentary.

Zune players

Joy Division - She's lost control again

Joy Division - Love will tear us apart:

Joy Division - Atmosphere:

Jose Gonzalez great cover of Love will tear us apart:

Question: What's fine art photography?

Spike Mafford's reply:

"...art that's used as decor rather than a commercial application, like on a coffee mug or a packaging somehow."

Art is decor ... yikes, if you feel like starting a riot sometime, say that to some artists at an art opening. :)

image

I don't have the time or desire to get into a big debate about what is art, instead, I just wanted to share the Crossfader website http://www.crossfader.com with you, which is where I pulled that nugget of a quote from a video interview with the fine art photographer Spike Mafford.

I became aware of the Crossfader website a few years ago but didn't follow it and quickly forgot about it, but was reminded of it by someone I carpooled with last week. The site contains a lot of interesting video interviews with creatives working in all sorts of media, especially music. The site happens to be backed by Microsoft and one of the site's objectives is to, as they say, ".... see how great art is created using the PC and amazing software from a wide range of companies."

From the Crossfader About page:

Q. What is Crossfader?
A.  Crossfader is a online magazine aimed at the professional and next generation digital artists. Our main goal was to create a site that features video interviews and stories with artists who use technology in their work.  We feel the PC has transformed how art and expression is made and we’d like to share that story. Our motto is Artist. Creative. expression

Good stuff.

You've visited the http://www.hotornot.com/ website. You've voted. You've compared your vote to the average of all other voters. (You've wondered if the rumors are true that the founders of hotornot sold it for 20 million.)

Maybe you've also visited http://www.hotcaptcha.com/, but that felt a little cruel and so you went to http://www.hotornotchurchsites.com/ to feel good again.

Then you moved on to more sophisticated websites, including http://kittenwar.com/ and http://www.macbattle.com/ . 

But now it's time to get serious folks, and pass judgement on more important things... Like the hotness of websites!

From Technorati founder David Sifry:

http://okorko.com 

From a guy in Germany who also maintains a blog devoted to topics about Google:

http://www.hotornotdesigns.com/

From some feisty folks in New York City:

http://commandshift3.com 

Fun stuff. So do you know of any more design-oriented 'hot or not' websites? Let me know!  Also let me know if you know of any other quirky and silly ones.

This post was inspired by Carl Camera (LOVE that name!) whose vinetype website (created with Expression Web and Expression Design ) was voted best website in January by the commandshift3.com voters. See Carl's blog post about it. Congratulations Carl, very nice!

Brian Dettmer creates beautiful diorama-like sculptures out of books.

More images at Aron Packer Gallery and Kinz, Tillou and Feigen , and Justin Ruckman's Centripetal Notion blog.

briandettmer4

Passing along the good news that the 'click to activate' behavior has been removed from Internet Explorer:

http://blogs.msdn.com/ie/archive/2008/04/08/ie-automatic-component-activation-now-available.aspx

Hooray!

When I arrived for my first interview to join the Expression Web team at Microsoft, I went past the receptionist's desk and through the glass entryway and was really surprised to be faced with a sculpture (titled "The Knight") by the folk artist Terry Turrell.

"The Knight" by Terry Turrell

There was no label nearby identifying the artist and the artwork but I knew right away that it was Turrell's artwork because I've been following his artwork since my freshman days in college when he was then selling painted t-shirts at a table in the Pike Place Market in downtown Seattle.

The work of his that I admire the most are (or is it "is"? where's my editor!?) his toy-like sculptures which are made with materials that appear to have come from a junk yard. I was excited to see Turrell's artwork at Microsoft because, hopefully, it means that the pieces I own of his are now worth something much more than I originally paid for them! :) I also felt like this was a positive sign that this was the right place for me to work.

I was subsequently impressed to learn that there is a Microsoft Art Collection and that Microsoft owns all of the artwork that is on display in every floor of every building on the Microsoft campus in Redmond. You can look at some of the artwork in the collection on this public website: http://www.microsoft.com/mscorp/artcollection/default.mspx

public homepage of the Microsoft Art Collection

There is also a website for Microsoft employees only, which we can use to see the entire collection online and search for artwork based on an artist's name or genre.

Previous places that I've worked at would rent artwork, and the artwork was chosen by a committee of volunteer employees, and so as you might imagine, the work wasn't all that inspiring...bland landscapes and still lifes...art-by-committee. As an artist myself, I think it's great that Microsoft believes in supporting art and believes that artwork is a wise investment, both culturally and financially.

The Microsoft Art Collection includes several pieces by local artists, including my former professor Paul Berger who teaches photography and digital imaging at the University of Washington, for the Photography program in the School of Art program. The Microsoft Art Collection appears to mostly contain pieces by artists that aren't local, and even has pieces by Chris Burden, an artist that is best known for some controversial performance artwork.

Anyway, I thought I'd blog about the Art Collection at Microsoft because it's NOT just a benefit for only Microsoft employees. The folks behind the collection also run programs that the public is welcome to participate in, including:

  • Weekly guided tours 
  • Online exhibitions
  • Artist lecture series (requires registration)
  • Monthly book discussions
  • And a film series

And all of these programs are FREE and as I said, available to the public.

So what are you waiting for? Get your art on people! @ Microsoft !

http://www.microsoft.com/mscorp/artcollection/default.mspx

If you're a Microsoft employee, there's a more in-depth website that lets you search the entire collection:

 http://refweb/sites/artweb/Pages/default.aspx

Anna

p.s. This is NOT an April Fools' Day post! :)  Really, it isn't, for reals.

Good review of Expression Web and Eric Meyer's CSS Sculptor add-in for the program:

http://www.flashmagazine.com/news/detail/eric_meyers_css_sculptor_for_expression_web

The first time I hit CTRL+F while using Firefox I thought I had either encountered a bug or the design of the program was flawed because nothing seemed to happen. Where was the Find dialog box that every other program on the planet (including Internet Explorer) pops up in front of you, blocking your view of your program and forcing you out of context, interrupting your flow? It took me a few times of doing this before I noticed the Find bar that appears along the bottom edge of the program:

Find bar in Firefox browser window

An elegant solution! Not very noticeable if you're on a high resolution monitor and your browser window is extending the full height of the monitor, but still elegant.

And you also get that feature if you're in the Source of a page in Firefox:

Find bar in source of web page in FireFox

Have you ever wished you had that same functionality in Expression Web? It's already there! The feature is so stealthy, we didn't even know to document it in the version 1 Help. :)

So let me introduce you to the Incremental Search command on the Edit menu in Expression Web:

Incremental Search command on Edit menu

To use the Incremental Search feature in Expression Web, open a page first (or a CSS file or other document). Then in either the Design view or Code view of your page, select Edit > Incremental Search or just press CTRL+ALT+F.  Your cursor changes to a down-pointing white arrow and binoculars Incremental Search cursor icon . And instead of a Find dialog box or Find toolbar appearing, Expression Web displays the text Incremental Search: in the status bar at the bottom of the program window:

Incremental Search in status bar

When that appears, just start typing what you want to find. The characters you type appear in the status bar, for example, I've typed hover:

Incremental Search in status bar

As you type, the first instance of the characters you typed is highlighted in the page and if necessary, the program scrolls the page to display the instance.

If no instances are found, the status bar tells you so:

Incremental Search in status bar

If the characters you typed are found and there are multiple instances, press F3 to go to the next instance in the page or press SHIFT+F3 to go to the previous instance. When you've gone to a previous instance, the status bar displays Reverse Incremental Search:

Reverse Incremental Search in status bar

When you're ready to stop searching, just click in the page or press either ESC or ENTER.

QUICK & SLICK!

A developer on my team (hey Tomas!) informed me that Visual Studio has had this "forever" but it's accessed in that program through CTRL+I apparently. No matter, everything old is new again...  And Tomas also pointed me to an extension for Internet Explorer that adds that kind of search functionality and some extra features too (maybe the IE 8 team will support something like this, hint hint): http://www.ieforge.com/InlineSearch/HomePage

When you need more robust searching intelligence in Expression Web, there's always ye ol' classic Find and Replace dialog box too:

Find and Replace dialog box

BTW, does anyone say foxy anymore? That's a foxy feature you got there Expression Web. The developer who implemented that feature is a fox! I'm feeling foxy! Such a versatile word... ;)

I searched http://www.meetup.com/ this morning for "web standards" to see if there were any new meetups in the Seattle area that I might attend to talk shop and get input about a website that I want to quickly design and deploy this month. In addition to the usual suspects, Web Designers meetup, Information Architecture meetup, PHP meetup, and Web Technology meetup, I was amused to see the following two meetups that don't have anything to do with web authoring appear in my search results:

The Seattle Wingman Meetup Group for the "pickup arts"...hey, I didn't authorize them to use that photo of me! :p

Web page of Seattle Wingman Meetup

And a Poodle lovers meetup...judging by that photo, it appears to be an appalling poodle fighting ring! :p

Web page of Bellevue Meetup for Poodle enthusiasts

I love the web!

I think I'm the only person at Microsoft who brings her own plate to the cafeterias on campus here in Redmond. I've gotten a lot of positive encouragement from other people who notice me and my plate, but I've yet to see anyone else doing this in my two years here. I do this because in many ways, including aesthetically, it's more pleasurable to eat off a ceramic plate than a styrofoam plate, and more importantly, because it's less wasteful. Bringing my own plate to work is a good habit I got into while working at Adobe in Seattle, after seeing a few guys doing this there.

And I don't bring just any ol' plate...I bring a nice green ceramic plate that's divided like a tv dinner plate is (complete with a little circle to put the matching drinking cup on) and that was designed by Belle Kogan. Here's an image of my plate, waiting for its grilled tofu salad at my favorite Microsoft cafeteria:

Belle Kogan tv dinner plate

I started working at Microsoft in January of 2006, and so I estimate that by bringing my own plate to the cafeteria, I've avoided using 490 disposable styrofoam plates! Four hundred and ninety styrofoam plates!  What do 490 styrofoam plates look like? Well, I wish I had an image to show you that's as impressive as the photographs of Chris Jordan, but what I can do is show you a stack of 70 styrofoam plates that I photographed at the cafeteria and then cloned 7 times in Photoshop.

Rather than make you scroll the entire web page to view the image, I've instead used the BETA version of Expression Web 2 to put the image into a <div> container, set the height of the div to a much shorter height than the image, and then set the CSS overflow property to scroll. The scroll value masks out the areas of the image that extend beyond the div's dimensions and provides scroll bars so users can scroll the div container without having to scroll the entire web page.

Here it is in action...scroll baby scroll!

 

490 styrofoam plates

Now if you setup your own overflowing div in the first version of Expression Web, you'll discover that the Design view does not render the overflow property correctly. To see the results, you had to preview your page in a browser that supports the property. I'm pleased to report that the Design view of Expression Web 2  does properly render the overflow property.

Here's how to setup an overflowing div like my example above using any tool you want:

  1. Put your content (image, text, whatever you want...) between a set of <div> </div> tags.
    Tip for Expression Web users: if the content is already in your page, and you need to wrap the content with a set of <div> </div> tags, then with your content selected, press CTRL + Q to open the Quick Tag Editor, and type <div> and click the Enter button.
  2. Use CSS to set the width and height of the div to the desired dimensions. For example, here's an inline style applied to a div: <div style="width: 450px; height: 375px;"> .

    To set these dimensions in the Design view of Expression Web, click the <div> tag in the quick tag selector bar that lies along the top of your page (see image that follows )...this makes sure your <div> tag is selected and not your <img> tag - very important! And then to set the width of the div, drag the square handle (see image that follows) that's in the middle of the right edge of the div, and then to set the height, drag the square handle that's in the middle of the bottom edge of the div. Again, it's important that you do this while the div is selected, otherwise you'll resize the image instead. And it's very important to drag the handle of a side and not to drag the edge on either side of the handle...if you drag the edge then you'll set the margin of the div instead of the dimension.
    dragging in Design view to set the div's dimensions

    After you've set the size of the div so that it's smaller than your content, the Design view of your page will show the content extending out of, or overflowing, the div like this:

    Design view showing content overflowing out of a div

  3. Now to mask the photograph so that you can only see the portion of it that is showing within the outline of the div, you need to add the overflow property to the style you've applied to your div, and set the property's value to scroll (or to "hidden" if you don't want to provide the user with the option to scroll in the div). To do this in Expression Web, select your div, and then in the CSS Properties task pane, with the inline style (or your own style) selected under Applied Rules in the task pane, locate the overflow property and set it to scroll.

    overflow property in the CSS Properties task pane

With the overflow property set to scroll, the Design view in Expression Web 2 masks the area of the photograph that goes beyond the area of the div and shows a scroll bar. The scrollbars don't function in Expression Web...you'll have to preview in your browser to test those out. And the Design view shows an outline of whatever content is overflowing outside of your div. For example, look at the white vertical lines extending downward below the selected div...those lines represent the photograph that is being masked by the div.

Design view showing div with overflow property set to scroll

Power Expression Web user tip: If you want to avoid inline styles, such as the inline style that was created and applied to the div when you dragged the edges of the div in Design view, then change your CSS settings in the Page Editor Options like this: choose Tools > Page Editor Options. In the Page Editor Options dialog box, click the CSS tab, and change the Sizing, positioning, and floating option to CSS (classes). Then next time you drag the square handles of a selected element in Design view, Expression Web will generate a class for you instead of an inline style.

I was working on a demo to present to a few people earlier today, and wanted to insert some Latin filler text into the page that I was mocking up in Expression Web. So as I usually do, I pulled up http://www.lipsum.com/ in my browser, entered the number of paragraphs I wanted, pressed their Generate Lorem Ipsum button, copied the text in the browser, and then pasted it into my page in Expression Web. Bleh...

Since I would be demoing those same steps in front of other people, I became very aware of how inefficient that all is and then it occurred to me that I could put the text into a Code Snippet instead. Seems obvious in hindsight, but maybe the feature's name "code snippets" kept me from associating it with inserting a snippet of "content"? Actually, this idea had occurred to me before but just not when I needed filler text. Anyhoo...here are the steps to create a snippet of content you can quickly insert into pages in Expression Web:

  1.  Do one of the following:
    • Choose Tools > Page Editor Options, and then in the Page Editor Options dialog box, click the Code Snippets tab.
    • With your cursor in the Code view of your page, press CTRL + ENTER, and then in the popup list that appears, if the Customize list... option is selected then press ENTER or double-click Customize list...




  2. In the Page Editor Options dialog box, on the Code Snippets tab, click Add.
  3. In the Add Code Snippet dialog box, do all of the following: 
    1. In the Keyword box, enter the characters you want to use to jump to this code snippet in the list of code snippets. (I entered lorem.)
    2. In the Description box, you guessed it, describe your code snippet. (I entered lorem ipsum Latin filler text.)
    3. In the last text box, enter as many paragraphs of Latin filler text as you'd like. I entered two paragraphs of text. (Each paragraph of text appears in a single line of text in this dialog box...odd, I know, but it works fine.) And because I typically want paragraph tags around each paragraph, I also put a <p> tag before each paragraph and a </p> tag after each paragraph.
    4. Click OK.

      Add Code Snippet dailog box
  4. And click OK again, this time in the Page Editor Options dialog box.
  5. Now whenever you want to use your snippet of filler content, just go to the Code view of your page, put your cursor where you want the content, press CTRL + ENTER, and then start typing the keyword that you assigned the code snippet in step 3-1 , and press ENTER as soon as the right snippet is selected.

    code snippets popup with custom code snippet in the list

Ta da! Infinitely easier...

Lorem ipsum filler text in Code View

More Posts Next page »
 
Page view tracker