markup

Visual Studio - Markup syntax highlighting inside script[type:txt/html]

Does anyone know how or if its possible for Visual Studio 2008 to highlight the html syntax inside a script block of type "text/html" just like any other markup on an aspx/html page. I'm using the script block to house my templates for client-side templating. ...

Does SharePoint in any way support Wiki markup languages?

I tend the think the answer is no based on this article. There is so much noise with these search terms that I am having problems coming up with a definitive answer. ...

Html for Snail Mail Addresses

What do you think is the best way to markup a snail mail address? I found some different options such as: <div class="address"> <span class="name">Mr. Bob</span><br/> <span class="street">45654 Bob Ln</span><br/> <span class="city">Imaginery</span>,<span class="state">OH</span><br/> <span class="postalCode">44321</span> </div> I also ...

Regex and the "war" on XSS

I've always been interested in writing web software like forums or blogs, things which take a limited markup to rewrite into HTML. But lately, I've noticed more and more that for PHP, try googling "PHP BBCode parser -PEAR" and test a few out, you either get an inefficient mess, or you get poor code with XSS holes here and there. Taking...

How do you search a database column that allows markup?

The text could be stored in the database using either markdown, bbcode, html, etc. Should I remove any allowed tags from the search terms? Does your markup parser have any method to assist in that task? I was going to use like '%searchword%' queries. Does full text search offer any advantages for such a simple text search? Update: It s...

What is the difference between SGML and XML?

All the Google results suck. ...

Captioning an image

What's the neatest way to caption images on the web using the latest in HTML/CSS? Demo code please. ...

<cite> as part of semantic markup

One of the sites I develop has lots of information linked between each other; we have companies, we have products for those companies. The company page links to the page listing the products for that company, and vice versa. From the HTML spec: CITE: Contains a citation or a reference to other sources. Does this imply that I...

What is the best way to markup a testimonial in XHTML?

I used to just use p and span elements for this... but I'm always pushing to use the right elements, and this is something I haven't really thought about before with regard to testimonials. This is what I had in mind <div class="testimonial"> <blockquote>i love your products</blockquote> <span>Jim Testimonial-giver</span> </div> Do...

Are there any standalone HTML markup validation tools

Other than submit individual web pages for verification on the W3C site, are there any standalone tools that will do this job. Ideally this would be a visual studio plugin that could catch errors at design time but one that would just take a wep application url running locally would be good. Open source suggestions would be preferable...

Mediawiki + Lucene: How To Strip Markup?

Hi, I have the Lucene search extension (http://www.mediawiki.org/wiki/Extension_talk:Lucene-search) integrated with my mediawiki installation. Its all working really well, however- lucene seems to have indexed all the mediawiki /html markup as well and it is showing up in the results. i.e. searching for "green" will return results with...

PHP: HTML markup problem while displaying trimmed HTML markups

I am using a Richtext box control to post some data in one page. and I am saving the data to my db table with the HTML mark up Ex : This is <b >my bold </b > text I am displaying the first 50 characters of this column in another page. Now When i am saving, if i save a Sentence (with more than 50 chars )with bold tag applied and in my ot...

How can I test the markup validity of a string (webpage) in .Net?

I've written a VB.Net page to browse my site. It stores the HttpWebResponse in a string. How can I validate the markup validity of the page in .Net? - something similar to W3's validate by direct input option. I'm looking for something that can identify the DOCTYPE, validate it yes or no, and return a list of failures I can display. ...

Question concerning markup validation errors

I am using [http://validator.w3.org/][1] for markup validation and I continue to get errors that don't make any sense to me. For two below, for example, the validator is telling me that there is an error detected within the closing brackets of the body and html tags. For one page it repeats these errors 5 times and it doesn't make sense ...

Is it possible to initialize a Control's List<T> property in markup?

Let's say we have the following: public enum RenderBehaviors { A, B, C, } public class MyControl : Control { public List<RenderBehaviors> Behaviors { get; set; } protected override void Render(HtmlTextWriter writer) { // output different markup based on behaviors that are set } } Is it possible to...

ASP.NET App Settings Directly in Markup

What is the syntax for accessing a AppSettings directly from the ASP.NET Markup? I can't remember exactly, but it was something like '<%= $.settingname %>' ...

Track changes: svn + latex

In MS Word, there's a nice feature called "track changes" that allows the program to track edits. This is useful when collaborating with others because you can enable various visualization modes where it's easy to see what others have changed. I'm in the process of editing a large amount of documentation written in LaTeX and stored in ...

How can I improve this markup and CSS to keep things simple and easy to work with?

I have the following markup that is used to produce a pop-up style mega-menu (the .column div is there to allow multiple columns within each popup, though the example below only has a single column)... <ul id="mainmenu"> <li class="mega"> <h2><a href="/">Menu 1</a></h2> <div class="submenu col1 leftmenu"> <div class=...

HTML tags within JSON (in Python)

I understand its not a desirable circumstance, however if I NEEDED to have some kind of HTML within JSON tags, e.g.: { "node": { "list":"<ul><li class="lists">Hello World</li><ul>" } } is this possible to do in Python without requiring to to be escaped beforehand? It will be a string initially so I was thinking a...

(X)HTML Markup for Book Titles

Should book titles be contained in an <em> tag? If not <em> is there more appropriate markup? ...