Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

yaml multiline string

# Use > most of the time: interior line breaks are stripped out, although you get one at the end:

key: >
  Your long
  string here.


# Use | if you want those linebreaks to be preserved as 
 (for instance, embedded markdown with paragraphs).

key: |
  ### Heading

  * Bullet
  * Points

# Use >- or |- instead if you don't want a linebreak appended at the end.
# Use "..." if you need to split lines in the middle of words or want to literally type linebreaks as 
:

key: "Antidisestab
 lishmentarianism.

Get on it."
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #yaml #multiline #string
ADD COMMENT
Topic
Name
5+6 =