Все вопросы: [markup]

98 вопросов

7
голосов
4ответов
2242 просмотров

How to use extensions and utility methods in markup?

Ok. This is probably a really stupid question, but I'm going to ask it anyway... How can I use extensions and utility methods in my ASP.Net markup? For example, (say) I have a DateTime extension method called "ToExampleString()" (contained in the DateTimeExtensions class in my Common.Extensions ...

3
голосов
1ответов
800 просмотров

How to prevent Error List Window from showing up within Visual Studio ASP.NET Editor?

Any errors or warnings within the markup pops up the window and it reminds me VB6 error message box, stealing the focus and concentration. Quite an eyesore. Is there a way to prevent the Error List window from showing up while editing ASP.NET markups?

0
голосов
2ответов
1732 просмотров

Trying to embed a DataItem within an asp:Image control's ImageUrl property

I have the following Image control within a repeater. I'm trying to get the username to render in between ~/profilepics/ and .jpg but I get the following rendered output /profilepics/%3C%25#DataBinder.Eval(Container.DataItem,%20%22usernameFrom%22)%20%25%3E.jpg Here is the markup <asp:Image ...

1
голосов
6ответов
2114 просмотров

Regular Expression for Conditional Substitution of Angle Brackets

Is it possible to create a single regexp to replace with their entity equivalents in Komodo Edit? s/<|>/<|>/

5
голосов
4ответов
284 просмотров

Suggestion for Semantic Markup

I am creating a web GUI for an application I am working on. This particular section will sit within a larger page that is of a good semantic makeup. However, I am unsure what the best option to markup the below screen semantically. My initial thought is to separate the top half from the bottom h...

4
голосов
2ответов
5823 просмотров

Add/insert elements into Groovy MarkupBuilder object after initial creation

I understand how to create XML in Groovy using MarkupBuilder. How do you add/insert elements into a MarkupBuilder object after the initial creation? For example, start with: def builder = new MarkupBuilder(writer) def items = builder.items{ item(name: "book") } Which would produ...

9
голосов
9ответов
1393 просмотров

Why is there no standardized wiki markup language?

For as many wiki tools as I have used, each time I must learn yet another markup language. Why doesn't wiki markup get standardized like HTML, XSLT, SVG, and other web languages?

4
голосов
6ответов
943 просмотров

Why do plain-text technical articles often enclose terms within backticks and single quotes?

I like to save local copies of useful text-heavy pages from the web so I can practice improving their appearance by modifying the markup to include CSS. I've noticed that some text on the pages is often delimited by ` and '. Is there a good reason for this? I'd like to do my modifications autom...

6
голосов
5ответов
391 просмотров

Forms: Does your css accommodate your markup or vice versa?

Regarding html forms, a very common markup pattern is: <form ...> <p> <label>Name:</label> <input .../> </p> <p> <label>Birthdate:</label> <input .../> </p> .. <input type=submit/> </form> ...

2
голосов
2ответов
3994 просмотров

Theming Drupal Panels

I created a homepage layout using Panels 3, mostly of blocks created by Views. Now I'd like to apply the visual look and feel as it was designed & sliced. Panels adds an serious amount of divs to its markup. I dont necessarily need to remove this but I do need to add certain classes, id's a...

6
голосов
3ответов
1183 просмотров

Style attribute vs setting ID and external Css

I understand the concept of keeping all presentational elements outside of the markup and putting them into an external .css file. I want to get a feel for what types of situations you'd justify use of the style attribute vs setting IDs and external Css. To this point, I've used the style attr...

3
голосов
2ответов
196 просмотров

catching exceptions in asp.net markup

How does one go about catching exceptions from using controls in markup? For example, I have the following code <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="http://feeds.feedburner.com/" XPath="rss/channel/item [po...

8
голосов
5ответов
2398 просмотров

Displaying preview panel automatically in markitup! editor

I'm using the markitup! as a markdown editor (example). Currently, I need to press the preview button (green tick) to display the preview panel. I would like the preview to be displayed automatically - how can I achieve this?

1
голосов
1ответов
139 просмотров

What technology problems arise from creating a markup language for email?

I am wondering what technology problems arise from associating a markup language to email? Without examining the language let us assume a hypothetical markup language exists with the following conditions: It meets all possible user-agent needs for properly structuring and defining content in e...

8
голосов
4ответов
2478 просмотров

How do you make a code block in fogbugz Cases (tickets)?

We have been using fogbugz and have been pasting code in tickets, but it always comes out hammered. is there any way to denote that a block of text is code? You know.. Like this (edit) Is it possible to put some simple html to set the text apart or something?? (edit again) based on my rese...

2
голосов
3ответов
2239 просмотров

Java regex to match all html elements except one special case

I have a string with some markup which looks like this: The quick brown <a href="www.fox.org">fox</a> jumped over the lazy <a href="entry://id=6000009">dog</a> <img src="dog.png" />. I'm trying to strip away everything except the anchor elements with "entry://id=" ...

2
голосов
4ответов
145 просмотров

Whats the right way to label things in a form?

I've seen lots of ways to label things in a form such as <label>, <div>, <span>, etc. Is there a right or wrong answer for this? Are there any advantages/disadvantages to any of these? Thank You

8
голосов
1ответов
4277 просмотров

DocBook: Specifying code or markup

You can specify equations using <equation> and also several others, but what tag must be used to specify code? More specifically, PHP, HTML, CSS and Javascript? Is there a plugin that you can use with OxygenXML to add these features automatically? I need to output as PDF.

6
голосов
9ответов
664 просмотров

Testing JavaScript code without recreating markup?

I want to test the JavaScript code in our web app. We are using the jQuery library and .Net MVC. I've looked at these answers, and jqUnit looked nice, so I tried it, just to realize that I'll have to pretty much recreate all markup for every page I want to test. Am I missing something? Are ther...

3
голосов
7ответов
192 просмотров

Subversion and authoring books?

I am busy writing a book and I'm using MS Office to write the book. However, doc files are binary files, and therefore a real pain to put into subversion with proper version control. So, is there an application of some sort or maybe some other suggestions (other than text files) that I can use to...

14
голосов
11ответов
21064 просмотров

Should I use the <p></p> tag in markup?

I have always used either &lt;br /&gt; or a &lt;div/&gt; tag when something more advanced is necessary. Is use of the &lt;p/&gt; tag still encouraged?

1
голосов
2ответов
845 просмотров

Need reference for ASP.net MVC View-markup syntax

I'm getting started with .NET MVC. I have experience with C# and I'm getting confortable with controllers and models. I'm however not very knowledgeable when it comes to writing views. I'm struggling to find a good reference on the matter. Available code samples are usually simple and orient...

0
голосов
2ответов
81 просмотров

Are there any standards for markup like the one that SO site uses?

I will like to design/develop a formatting markup for an application that we are developing. Is there any standard on this like what StackOverflow uses when writing each question description.

22
голосов
4ответов
82846 просмотров

What is the best way to style a list of checkboxes

What I'd like to achieve is a layout like this some label [ ] checkbox 1 [ ] checkbox 2 [ ] checkbox 3 [ ] checkbox 4 [ ] represents a checkbox What markup and CSS would be best to use for this? I know this would be easy to do with a table I'm wondering i...

4
голосов
3ответов
1217 просмотров

Lightweight markup language for Python

Programming a Python web application, I want to create a text area where the users can enter text in a lightweight markup language. The text will be imported to a html template and viewed on the page. Today I use this command to create the textarea, which allows users to enter any (html) text: m...

3
голосов
6ответов
325 просмотров

What's the actual name of tags?

Possibly a redundant and useless question, but my colleagues and I refer to as server tags, but is there an actual name for them? one i've seen used is calling them Alcohol tags. Edited based on answers We're referring to them in ASP.NET, but I would've thought they'd use the same name across...

0
голосов
2ответов
104 просмотров

How to convert between two types of document markup with regex in C#?

I am trying to convert between html-style markup such as bold and italics into my own custom markup format: Bold word ---&gt; * Bold word * So the bold tag is converted to wrapping stars, etc. Whats the easiest/best/fastest way to do this? Parsing the string manually is easy enough, but what ...

1
голосов
2ответов
790 просмотров

What Html markup for a focusable TD?

I want to practive, and even best-practice, with Html+JS+CSS. I use a one page client-only Sudoku page. My Sudoku markup is basically a &lt;table&gt;, with &lt;td&gt;. (I'm open to suggestions to improve this). My requirements : Have a cell under focus (the keyboard notion of focus) (highlighe...

0
голосов
2ответов
585 просмотров

Simple CakePHP text markup solution for editing news posts

When first searching the web for a simple CakePHP way to convert small news posts (written by a non-technician) I found the flay method in TextHelper. However it turned out that it has been deprecated, referencing to TextileHelper w/ SmartyPants. Textile indeed seems to be a very competent mark...

40
голосов
13ответов
31334 просмотров

Truncate text containing HTML, ignoring tags

I want to truncate some text (loaded from a database or text file), but it contains HTML so as a result the tags are included and less text will be returned. This can then result in tags not being closed, or being partially closed (so Tidy may not work properly and there is still less content). H...