What does {# content #} do in a Markdown file or a HTML file?
I have a question regarding a Markdown syntax...
What does {# content #} do in a Markdown file or a HTML file? Is it a comment?
Also what does {% content %} do? Is it a variable?
Example:
<p> `{% block toggle %}<p>
<label for="devsite-radio-objc">Objective-C</label>
<input type="radio" class="devsite-navigating-radio"value="swift">
</p>{% endblock %}{# toggle #}`
markdown
add a comment |
I have a question regarding a Markdown syntax...
What does {# content #} do in a Markdown file or a HTML file? Is it a comment?
Also what does {% content %} do? Is it a variable?
Example:
<p> `{% block toggle %}<p>
<label for="devsite-radio-objc">Objective-C</label>
<input type="radio" class="devsite-navigating-radio"value="swift">
</p>{% endblock %}{# toggle #}`
markdown
1
I have never worked with Markdown, but based on the example you have shown, the pairs of {% and %} seem to be template blocks. endblock is a big clue. Also, the pairs of {# and #} seem to be comment blocks.
– Lajos Arpad
Nov 23 '15 at 23:43
Thank you Lajos!
– Penny
Nov 24 '15 at 19:53
Penny, is my comment worthy to become an answer?
– Lajos Arpad
Nov 25 '15 at 12:23
If the answer below answered your question, please remember to accept it.
– Chris
Nov 30 '15 at 13:53
@LajosArpad sorry that I forgot to accept your answer. Just did it! :)
– Penny
Jan 22 '16 at 22:15
add a comment |
I have a question regarding a Markdown syntax...
What does {# content #} do in a Markdown file or a HTML file? Is it a comment?
Also what does {% content %} do? Is it a variable?
Example:
<p> `{% block toggle %}<p>
<label for="devsite-radio-objc">Objective-C</label>
<input type="radio" class="devsite-navigating-radio"value="swift">
</p>{% endblock %}{# toggle #}`
markdown
I have a question regarding a Markdown syntax...
What does {# content #} do in a Markdown file or a HTML file? Is it a comment?
Also what does {% content %} do? Is it a variable?
Example:
<p> `{% block toggle %}<p>
<label for="devsite-radio-objc">Objective-C</label>
<input type="radio" class="devsite-navigating-radio"value="swift">
</p>{% endblock %}{# toggle #}`
markdown
markdown
edited Dec 29 '18 at 18:52
Peter Mortensen
13.6k1984111
13.6k1984111
asked Nov 23 '15 at 23:16
PennyPenny
5221419
5221419
1
I have never worked with Markdown, but based on the example you have shown, the pairs of {% and %} seem to be template blocks. endblock is a big clue. Also, the pairs of {# and #} seem to be comment blocks.
– Lajos Arpad
Nov 23 '15 at 23:43
Thank you Lajos!
– Penny
Nov 24 '15 at 19:53
Penny, is my comment worthy to become an answer?
– Lajos Arpad
Nov 25 '15 at 12:23
If the answer below answered your question, please remember to accept it.
– Chris
Nov 30 '15 at 13:53
@LajosArpad sorry that I forgot to accept your answer. Just did it! :)
– Penny
Jan 22 '16 at 22:15
add a comment |
1
I have never worked with Markdown, but based on the example you have shown, the pairs of {% and %} seem to be template blocks. endblock is a big clue. Also, the pairs of {# and #} seem to be comment blocks.
– Lajos Arpad
Nov 23 '15 at 23:43
Thank you Lajos!
– Penny
Nov 24 '15 at 19:53
Penny, is my comment worthy to become an answer?
– Lajos Arpad
Nov 25 '15 at 12:23
If the answer below answered your question, please remember to accept it.
– Chris
Nov 30 '15 at 13:53
@LajosArpad sorry that I forgot to accept your answer. Just did it! :)
– Penny
Jan 22 '16 at 22:15
1
1
I have never worked with Markdown, but based on the example you have shown, the pairs of {% and %} seem to be template blocks. endblock is a big clue. Also, the pairs of {# and #} seem to be comment blocks.
– Lajos Arpad
Nov 23 '15 at 23:43
I have never worked with Markdown, but based on the example you have shown, the pairs of {% and %} seem to be template blocks. endblock is a big clue. Also, the pairs of {# and #} seem to be comment blocks.
– Lajos Arpad
Nov 23 '15 at 23:43
Thank you Lajos!
– Penny
Nov 24 '15 at 19:53
Thank you Lajos!
– Penny
Nov 24 '15 at 19:53
Penny, is my comment worthy to become an answer?
– Lajos Arpad
Nov 25 '15 at 12:23
Penny, is my comment worthy to become an answer?
– Lajos Arpad
Nov 25 '15 at 12:23
If the answer below answered your question, please remember to accept it.
– Chris
Nov 30 '15 at 13:53
If the answer below answered your question, please remember to accept it.
– Chris
Nov 30 '15 at 13:53
@LajosArpad sorry that I forgot to accept your answer. Just did it! :)
– Penny
Jan 22 '16 at 22:15
@LajosArpad sorry that I forgot to accept your answer. Just did it! :)
– Penny
Jan 22 '16 at 22:15
add a comment |
1 Answer
1
active
oldest
votes
That's not Markdown.
The original Markdown syntax doesn't include anything like this. There are other popular versions of Markdown like GFM, MultiMarkdown and PHP Markdown, but none introduce this kind of syntax.
It looks like something in the Django / Jinja2 / Liquid / Twig / Swig family of templating languages.
In the languages I have used {# … #}
is indeed used for comments. These comments would generally not be included in the HTML output at all. Compare this with <!-- HTML comments -->
which don't display in the rendered page, but are included in the HTML source.
{% … %}
is generally used for tags and {{ … }}
, which you haven't asked about, are used for variables. Without knowing the specific language you're using it's hard to tell you much more than this. Different engines will have different available tags.
Hi Chris, thank you so much for the answer! Actually i have one more follow-up question about one yaml syntax...I know that the indentation and structure is fairly important in yaml, So if I see the syntax- description: > Build a map for your app using 3D buildings.
, does it matter if the "Build a map for your app using 3D buildings" follows after the greater than sign or if there's a line break in between(meaning the string starts a new line with indentation)?
– Penny
Nov 24 '15 at 20:01
1
@Penny, in general Stack Overflow works best when each question is submitted separately. That's especially true here, since your YAML snippet is very hard to read in a comment. Please submit it in a new question, where you can properly indent the code by selecting it and pressing Ctrl+K or clicking the{}
button.
– Chris
Nov 24 '15 at 21:37
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f33882592%2fwhat-does-content-do-in-a-markdown-file-or-a-html-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
That's not Markdown.
The original Markdown syntax doesn't include anything like this. There are other popular versions of Markdown like GFM, MultiMarkdown and PHP Markdown, but none introduce this kind of syntax.
It looks like something in the Django / Jinja2 / Liquid / Twig / Swig family of templating languages.
In the languages I have used {# … #}
is indeed used for comments. These comments would generally not be included in the HTML output at all. Compare this with <!-- HTML comments -->
which don't display in the rendered page, but are included in the HTML source.
{% … %}
is generally used for tags and {{ … }}
, which you haven't asked about, are used for variables. Without knowing the specific language you're using it's hard to tell you much more than this. Different engines will have different available tags.
Hi Chris, thank you so much for the answer! Actually i have one more follow-up question about one yaml syntax...I know that the indentation and structure is fairly important in yaml, So if I see the syntax- description: > Build a map for your app using 3D buildings.
, does it matter if the "Build a map for your app using 3D buildings" follows after the greater than sign or if there's a line break in between(meaning the string starts a new line with indentation)?
– Penny
Nov 24 '15 at 20:01
1
@Penny, in general Stack Overflow works best when each question is submitted separately. That's especially true here, since your YAML snippet is very hard to read in a comment. Please submit it in a new question, where you can properly indent the code by selecting it and pressing Ctrl+K or clicking the{}
button.
– Chris
Nov 24 '15 at 21:37
add a comment |
That's not Markdown.
The original Markdown syntax doesn't include anything like this. There are other popular versions of Markdown like GFM, MultiMarkdown and PHP Markdown, but none introduce this kind of syntax.
It looks like something in the Django / Jinja2 / Liquid / Twig / Swig family of templating languages.
In the languages I have used {# … #}
is indeed used for comments. These comments would generally not be included in the HTML output at all. Compare this with <!-- HTML comments -->
which don't display in the rendered page, but are included in the HTML source.
{% … %}
is generally used for tags and {{ … }}
, which you haven't asked about, are used for variables. Without knowing the specific language you're using it's hard to tell you much more than this. Different engines will have different available tags.
Hi Chris, thank you so much for the answer! Actually i have one more follow-up question about one yaml syntax...I know that the indentation and structure is fairly important in yaml, So if I see the syntax- description: > Build a map for your app using 3D buildings.
, does it matter if the "Build a map for your app using 3D buildings" follows after the greater than sign or if there's a line break in between(meaning the string starts a new line with indentation)?
– Penny
Nov 24 '15 at 20:01
1
@Penny, in general Stack Overflow works best when each question is submitted separately. That's especially true here, since your YAML snippet is very hard to read in a comment. Please submit it in a new question, where you can properly indent the code by selecting it and pressing Ctrl+K or clicking the{}
button.
– Chris
Nov 24 '15 at 21:37
add a comment |
That's not Markdown.
The original Markdown syntax doesn't include anything like this. There are other popular versions of Markdown like GFM, MultiMarkdown and PHP Markdown, but none introduce this kind of syntax.
It looks like something in the Django / Jinja2 / Liquid / Twig / Swig family of templating languages.
In the languages I have used {# … #}
is indeed used for comments. These comments would generally not be included in the HTML output at all. Compare this with <!-- HTML comments -->
which don't display in the rendered page, but are included in the HTML source.
{% … %}
is generally used for tags and {{ … }}
, which you haven't asked about, are used for variables. Without knowing the specific language you're using it's hard to tell you much more than this. Different engines will have different available tags.
That's not Markdown.
The original Markdown syntax doesn't include anything like this. There are other popular versions of Markdown like GFM, MultiMarkdown and PHP Markdown, but none introduce this kind of syntax.
It looks like something in the Django / Jinja2 / Liquid / Twig / Swig family of templating languages.
In the languages I have used {# … #}
is indeed used for comments. These comments would generally not be included in the HTML output at all. Compare this with <!-- HTML comments -->
which don't display in the rendered page, but are included in the HTML source.
{% … %}
is generally used for tags and {{ … }}
, which you haven't asked about, are used for variables. Without knowing the specific language you're using it's hard to tell you much more than this. Different engines will have different available tags.
edited Nov 24 '15 at 4:11
answered Nov 24 '15 at 4:06
ChrisChris
54.6k17117115
54.6k17117115
Hi Chris, thank you so much for the answer! Actually i have one more follow-up question about one yaml syntax...I know that the indentation and structure is fairly important in yaml, So if I see the syntax- description: > Build a map for your app using 3D buildings.
, does it matter if the "Build a map for your app using 3D buildings" follows after the greater than sign or if there's a line break in between(meaning the string starts a new line with indentation)?
– Penny
Nov 24 '15 at 20:01
1
@Penny, in general Stack Overflow works best when each question is submitted separately. That's especially true here, since your YAML snippet is very hard to read in a comment. Please submit it in a new question, where you can properly indent the code by selecting it and pressing Ctrl+K or clicking the{}
button.
– Chris
Nov 24 '15 at 21:37
add a comment |
Hi Chris, thank you so much for the answer! Actually i have one more follow-up question about one yaml syntax...I know that the indentation and structure is fairly important in yaml, So if I see the syntax- description: > Build a map for your app using 3D buildings.
, does it matter if the "Build a map for your app using 3D buildings" follows after the greater than sign or if there's a line break in between(meaning the string starts a new line with indentation)?
– Penny
Nov 24 '15 at 20:01
1
@Penny, in general Stack Overflow works best when each question is submitted separately. That's especially true here, since your YAML snippet is very hard to read in a comment. Please submit it in a new question, where you can properly indent the code by selecting it and pressing Ctrl+K or clicking the{}
button.
– Chris
Nov 24 '15 at 21:37
Hi Chris, thank you so much for the answer! Actually i have one more follow-up question about one yaml syntax...I know that the indentation and structure is fairly important in yaml, So if I see the syntax
- description: > Build a map for your app using 3D buildings.
, does it matter if the "Build a map for your app using 3D buildings" follows after the greater than sign or if there's a line break in between(meaning the string starts a new line with indentation)?– Penny
Nov 24 '15 at 20:01
Hi Chris, thank you so much for the answer! Actually i have one more follow-up question about one yaml syntax...I know that the indentation and structure is fairly important in yaml, So if I see the syntax
- description: > Build a map for your app using 3D buildings.
, does it matter if the "Build a map for your app using 3D buildings" follows after the greater than sign or if there's a line break in between(meaning the string starts a new line with indentation)?– Penny
Nov 24 '15 at 20:01
1
1
@Penny, in general Stack Overflow works best when each question is submitted separately. That's especially true here, since your YAML snippet is very hard to read in a comment. Please submit it in a new question, where you can properly indent the code by selecting it and pressing Ctrl+K or clicking the
{}
button.– Chris
Nov 24 '15 at 21:37
@Penny, in general Stack Overflow works best when each question is submitted separately. That's especially true here, since your YAML snippet is very hard to read in a comment. Please submit it in a new question, where you can properly indent the code by selecting it and pressing Ctrl+K or clicking the
{}
button.– Chris
Nov 24 '15 at 21:37
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f33882592%2fwhat-does-content-do-in-a-markdown-file-or-a-html-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
I have never worked with Markdown, but based on the example you have shown, the pairs of {% and %} seem to be template blocks. endblock is a big clue. Also, the pairs of {# and #} seem to be comment blocks.
– Lajos Arpad
Nov 23 '15 at 23:43
Thank you Lajos!
– Penny
Nov 24 '15 at 19:53
Penny, is my comment worthy to become an answer?
– Lajos Arpad
Nov 25 '15 at 12:23
If the answer below answered your question, please remember to accept it.
– Chris
Nov 30 '15 at 13:53
@LajosArpad sorry that I forgot to accept your answer. Just did it! :)
– Penny
Jan 22 '16 at 22:15