markup

Making user-made HTML templates safe

I want to allow users to create tiny templates that I then render in Django with a predefined context. I am assuming the Django rendering is safe (I asked a question about this before), but there is still the risk of cross-site-scripting, and I'd like to prevent this. One of the main requirements of these templates is that the user shoul...

read php output into a js string?

Basically, I have an html page and I want to create a separate javascript file that reads all of the markup between the tags into a javascript string. Is there a way to do that? EDIT Okay, so, to elaborate a little more... In my tpl.php file, I basically have these lines js snippet: <script type="text/javascript" src="/js/jquer...

ReStructuredText numbered headers

Is there a way in rst to have automatic header numbering ? That is something like: #. Some Section =============== ... #. Some Subsection ------------------ ... #. Another Subsection --------------------- ... #. Another Section ================== ... that would be rendered as: 1. Some Section ... 1.1 Some Subsection ... 1.2 Anoth...

Using QT to build a WYSIWYG Editor for a Custom Markup Language

I'm new to QT, and am trying to figure out the best means of creating a WYSIWYG editor widget for a custom markup language that displays simple text, images, and links. I need to be able to propagate changes from the WYSIWYG editor to the custom markup representation. As a concrete example of the problem domain, imagine that the custom...

What is the best substitute for FlowDocument in Silverlight?

I'm porting an application from WPF to Silverlight and was saddened to read of the lack of FlowDocument support. What is the best way in Silverlight then to display text with markup? I just need the basics, e.g. bold italic hyperlink colors font sizes Added: I don't mean a RichTextBox (as in the Vectorlight demo) but a way to for...

"Page description language" and "markup language"

What is the difference and relation between "Page description language", "markup language" and "Page description markup language"? Based on their wiki webpages, I just don't understand what is their difference. Why needs there be a markup adaption of the Page description language - "Page description markup language"? Examples: PostSc...

Conditional Markup in aspx

Hi... I have a ListView. If I want to base the html markup on a condition in respects to the databound item, what would be the best way to do that? What I mean is, is there any other way then putting <% %> if/else blocks directly in the markup? I'm aware that a really ugly way of doing it, is putting html markup in the database field,...

Flex fixed and variable height - can it be set in markup?

I've got the following Flex application markup: <app:MyApplicationClass xmlns:app="*" width="100%" height="100%" layout="vertical" horizontalScrollPolicy="off" verticalScrollPolicy="off"> <mx:VBox id="idPageContainer" width="100%" height="100%" verticalGap="0" horizontalScrollPolicy="off" verticalScr...

The textblock in a circle.

Prompt how to solve a problem, please. I have a div containing text. It is necessary that the text was in a circle. From what to me to start to solve the given problem? Can be methods javascript (on a site it is connected jQuery)? P.S. The decision should be crossbrowser. ...

HTML Markup To Use For Video Transcripts

Any idea what the proper containing markup would be to indicate a transcript for a video? Thinking accessibility for folks with disabilities but also perhaps search engine recognition of the association between the text and the video. ...

Store web content in XML using wiki markup

Does anyone have an XML style sheet that'll convert wiki-like markup to HTML? Or is that a bad idea? I only found one style sheet that'll convert HTML to wiki-like markup, view-source:http://mozile.mozdev.org/0.8/demos/html2wiki.xsl . Or is this a bad idea? Basically, instead of following strict rules with my XML tags to format my conten...

Can I make controls defined in my markup public instead of protected

Say I have a web site with a master page and an aspx page. In my ASPX page, I am pointing to my masterpage with the MasterType tag. <%@ MasterType VirtualPath="~/mymasterpage.master" %> Say, I've defined a label in the markup of my master page. If you look at the designer code, this label should be something like this. protected gl...

How to split the story in indesing markup language

Hi All, I am learning indesign, I have a doubt in story splitting... I want to split the story if the same story is used in two different text frames, I am extracting idml file and getting the needed data. My question is, I have a single story which is used by two text frames (Threaded text), and these two textframes are available in ...

css menu list with nested lists

I'm trying to recreate this type (example 1, example 2) of menu list style, but I need it to be able to handle nested lists and I'm not sure how to do it. does anyone have any insight how I can do this? ie (w/ minimal markup) : <ul> <li>one</li> <li>two <ul> <li>two and half</li> </ul> </li> </ul> Thanks a bunch...

Stop the Error List from popping up in Visual Studio 2008

Whenever I type in the markup of an aspx/ascx page in Visual Studio, the Error List window pops up (blank of course). Is there a way to stop that from happening? Thanks! ...

Markup filter wanted for a public website

Developing a community site where everyone can post text, I'm looking for a markup filter: What is not part of the markup must be escaped (htmlspecialchars()) as it is. Should turn URL-s automatically into links Should support some form of basic markups (bold, image, url, pre, list) Should have a simple parser, that turns user input te...

Teach Markup or use a WYSIWYG editor?

When it comes to WYSIWYG editors WYSI rarely WYG. The problem I always have is when people paste in formatted text from word. Ideally, what I'm looking for is a way for people to input text into the document while at the same time teaching them structure... I just don't know if that's a realistic goal ( compared to cut n' paste ) I'm c...

Getting proper indentation using XMLBuilder in a helper

I'm attempting to use a view helper to create some dynamic links based on if you're logged in or not. What I want returned, for sake of easy code readability, is: <ul class="right"> <li><a href="#">Login</a></li> <li><a href="#">Register</a></li> </ul> In the view helper I have this Ruby code: def loginh xm = Builder::XmlMarku...

Tools to build a UI markup language parser

For a school project, I need to implement a parser for a (probably XML-based) markup language for User Interfaces. Based on the input it generates a HTML document with various UI components (textareas, inputs, panels, dialogs etc.) Do you have any suggestions for tools/libraries I might use for this? (At school we use Flex and Bison, b...

Convert Textile Markup to Markdown?

I'm merging legacy Systems and some components use Markdown and others use Textile formatting. This is extremely confusing to my users. Therefore I want to standardize on Markdown. Is there a way to convert at least the Bulk of Textile formatting to markdown automatically? ...