Questions tagged [markup]

Markup covers various systems for annotating text with extra information which defines its formatting or appearance. Markup languages include HTML, XML, SGML, and markdown. The markup can typically only be seen when editing a document, not when viewing it.

Markup covers various systems for annotating text with extra information which defines its formatting or appearance. Markup languages include , , , and .

The markup can typically only be seen when editing a document, not when viewing it.

1350 questions
88
votes
5 answers

If YAML ain't markup language, what is it?

I fail to see what makes YAML any less of a markup language than XML. The purpose of a markup language is to define the structure of a document, and YAML does exactly that (YAML stands for YAML ain't markup language). What YAML should instead stand…
desbest
  • 4,746
  • 11
  • 51
  • 84
88
votes
2 answers

Does Razor syntax provide a compelling advantage in UI markup?

I notice Scott Guthrie is starting to mention Razor a fair bit on his blog but I'm just not that sure that it's a good fit for my style. Granted it's a fairly unfamiliar style for someone who's pretty used to a "standard" sort of ASP.Net markup…
Phil.Wheeler
  • 16,748
  • 10
  • 99
  • 155
82
votes
4 answers

Tool for testing Schema.org markup

Does anyone know of a good tool to test Schema.org (http://schema.org/) markup? The Google Rich Snippet tool does not support it properly. Even with the correct markup given, it says "Insufficient data to generate the preview." update: Now the…
Thiago Diniz
  • 3,041
  • 5
  • 30
  • 35
79
votes
2 answers

How do you document the parameters of a function's closure parameter in Swift 3?

In Xcode 8 beta and Swift 3, when you have a method that takes a closure as a parameter, for example: func foo(bar: (String) -> Void) { bar("Hello, world") } How do you document the parameters the closure takes? For example, if I wrote…
Søren Mortensen
  • 1,663
  • 1
  • 11
  • 25
75
votes
3 answers

What is the difference between x:Reference and ElementName?

According to the x:Reference Markup Extension page on MSDN, x:Reference References an instance that is declared elsewhere in XAML markup. The reference refers to an element's x:Name. According to the Binding.ElementName Property page on MSDN,…
Sheridan
  • 68,826
  • 24
  • 143
  • 183
69
votes
8 answers

Vertical dividers on horizontal UL menu

I'm trying to create a horizontal navigation bar (no dropdown, just a horizontal list), but I'm having trouble finding the best way to add vertical dividers between the menu items. The actual HTML is as follows:
  • Item 1
  • Item…
Michael L
  • 817
  • 1
  • 6
  • 6
55
votes
3 answers

How do I create a new line with reStructuredText?

How do I force a line break/new line in rst? I don't want it to be a new paragraph (ie. no additional spaces between the lines), I just want the text to start on a new line. Thanks!
tiggerae
  • 1,361
  • 1
  • 10
  • 13
48
votes
4 answers

What html markups to use for displaying label/value data?

I want to render a profile user container that contains a list of labels and their associated values. Here is an excerpt of information and layout I'd like to display: First…
fabien7474
  • 16,300
  • 22
  • 96
  • 124
44
votes
2 answers

Does Bugzilla support any markup language?

Maybe I'm just blind, but I can't find documentation about how to format text in Bugzilla. Does Bugzilla support Markdown, Textile or some sort of markup language out of the box? -- EDIT -- Half interesting news: there is an open P3 enhancement [1]…
Paolo
  • 20,112
  • 21
  • 72
  • 113
43
votes
2 answers

Telegram markdown syntax: Bold *and* italic? (September 2018)

By looking at Telegram’s “Markdown Syntax” Wiki page, it should be relatively easy to create text that is bold and italic. There, it says that *this is in italic* and _so is this_ **this is in bold** and __so is this__ ***this is bold and…
Nemgathos
  • 605
  • 1
  • 5
  • 13
43
votes
13 answers

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…
SamWM
  • 5,196
  • 12
  • 56
  • 85
43
votes
3 answers

Hiding markup elements in org-mode

There are plenty structural markup elements in org-mode like *bold* or /italic/, but they are visible in the org-mode text, which is good, if the file is intended for export, and bad, if it is intended for semi-WYSIWYG editing. I want to hide these…
Mirzhan Irkegulov
  • 17,660
  • 12
  • 105
  • 166
43
votes
2 answers

FAQ markup to R data structure

I'm reading the R FAQ source in texinfo, and thinking that it would be easier to manage and extend if it was parsed as an R structure. There are several existing examples related to this: the fortunes package bibtex entries Rd files each with some…
baptiste
  • 75,767
  • 19
  • 198
  • 294
42
votes
3 answers

are custom html attributes without data-* prefix a valid attribute?

Okey, so, recently, i found this: https://angularjs.org/ I noticed that they use custom attribute prefix "ng-" From articles, like: http://html5doctor.com/html5-custom-data-attributes/ or even…
ExClouds
  • 527
  • 1
  • 7
  • 13
41
votes
5 answers

Is it correct to nest HTML definition lists (
)?

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.
meleyal
  • 32,252
  • 24
  • 73
  • 79
1
2
3
89 90