markup

How to make PDF file downloadable in HTML link?

Hi, I am giving link of a pdf file on my web page for download, like below Download Brochure The problem is when user clicks on this link then If the user have installed Adobe Acrobat, then it opens the file in the same browser window in Adobe Reader. If the Adobe Acrobat is not installed then it pop-up to the user for Downloading t...

How would you markup a building plan/map using semantic HTML?

The building (a museum) has 7 levels (+3 to -3), each divided into different rooms/areas. Hovering over an area will reveal a popup describing that area. I'm looking for some markup that will accurately represent the 7 levels and their areas. The plan should make sense and be 'navigable' without any CSS/JS. Edit: Some clarification, t...

Is it correct to nest HTML definition lists (<dl>)?

Is it semantically correct to nest definition lists, or should they simply be a 'flat list of name/value pairs'. The specs don't seem to forbid it. Further to this question. ...

Standard/common mark up language for user provided content?

I suppose this might be similar to this question, but I'm wondering if there's a standard/popular mark up language for wiki and similar style user provided content. With the proliferation of different mark up syntaxes out there it seems like one would be a defacto one to implement. There appears to have been at least one group that wan...

Pure Javascript YAML library that supports both dump and load?

Does such a thing exist for YAML (aka YAML)? If this existed at one time, it must have been obliterated because the latest search turned up nada. It looks like there are plenty of implementations that dump from Javascript to YAML output only, but having trouble finding an implementation that supports both dump and load. Is anyone worki...

.NET - Server-side Markdown to HTML Conversion

What is a good open source .NET library to convert markdown to HTML on the server? If this has been answered somewhere else please point me to the post. Thanks. ...

What kind of Markup should i use for the Notes in my WebApp?

hi, i am building a webapp that will have notes fields all over the place, but i dont know what kind of markup i should use. these are my requirements User must be able to change the text style (bold, italic, underlined) User must be able to create bullet lists User must be able to create numbered lists User must be able to change th...

How to store lightweight formatting (Textile, Markdown) in database?

I'm going to be implementing a lightweight formatting language (probably Textile, maybe Markdown) in a project I'm working on, and I'm wonder how best to store it in the database. If the user is able to edit the content they're posting, it makes sense to me that the original, non-converted markup be stored so that the user doesn't have ...

Semantic HTML markup for FAQs

I want to build a questions and answers page. It is not a list, it is not tabular data and I am not sure if or how I should use <dl><dt><dd>. What is the best semantic way to build it and to format it with css? ...

Best practices in internationalizing text with lots of markup?

I'm working on a web project that will (hopefully) be available in several languages one day (I say "hopefully" because while we only have an English language site planned today, other products of my company are multilingual and I am hoping we are successful enough to need that too). I understand that the best practice (I'm using Java, ...

getting innerHTML from asp:Table control

I would like to capture the "innerHTML of a asp:Table control from a button click. i.e. webforms page has an asp:Table control that is dynamically populated at run time. I need a quick/dirty print button to print the contents of the table. Ideally, I'd like to just have a simple way to grab the markup of the rendered table to squirt to a...

what is the best way to mark any text?

I need users to mark some section of text with custom tags, I can't use the xml based tags as the whole text will be embedded in XML documents and all the < will be converted to html escape code <. I want users to marks some section of text with tags like skip, bookmark, these tags can have attributes also like bookmark name="first". Whi...

Image localization in asp.net

Howdy, I have a web application which needs to support multiple languages. We currently have quite a lot of images on the site with text in them. Im trying to find a way to localize these images with the least amount of hassle. What i have come up with so far is to add sub folders to the current /Images folder which relate to the requ...

Add web part to sharepoint page in aspx markup

I have an aspx page that get copied in the layouts directory of a Project Server instalation. The aspx is a web part page that has a web part zone. How can I add a web part in the markup of the page, within the web part zone? ...

Documentation templates (html/stylesheet)

Hello! Looking for some kind of documentation template. I want to markup my documentation in html and have a good looking style (stylesheet) for it. I don't looking for template in terms of how you write certain software documents. <h3>Javascript function 1</h3> <code class="javascript">code...</code> <p class="tips">Something smart a...

How important is it to follow web standards?

I recently found out that most of the major websites fail W3C's markup and CSS validation tests. Therefore, how important is it really to follow web standards? ...

xHTML markup checker integrated in Selenium

Hello Recently, I thought about how can I improve the quality of the projects, by using Continuous checking of xHTML source at Continuous Integration machine. Look, we have a project http://sourceforge.net/projects/jtidy - jTidy JTidy is a Java port of HTML Tidy, a HTML syntax checker and pretty printer. It can validate the xHTML thr...

How can I define sections without === Headings for RDoc::usage()?

I like to generate man pages using '--help' output via help2man and txt2man. Ruby's RDoc system is very convenient, but I can't seem to configure RDoc::usage in exactly the way that I want. Here's a sample script: #!/usr/bin/env ruby # # === Name # # foobar - Example command for StackOverflow question # # === Synopsis # # Usage: fo...

Compare and contrast the lightweight markup languages (Textile, Markdown, and reStructuredText)

Please identify the most popular lightweight markup languages and compare their strengths and weaknesses. These languages should be general-purpose markup for technical prose, such as for documentation (for example, Haml doesn't count). See also: Markdown versus ReStructuredText ...

Lighweight markup (wiki) language for documenting

When I write papers or documentation it makes think using LaTeX or OpenOffice is overkill as I usually only need some markup elements (bold, headlines, lists, ...) . I'd like to write my documents using a wiki style markup as this is very efficient. For example: = Introduction = '''HTML''' is a markup language... In the end I'd like ...