Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add to shakespeare chapter notes about in-line comments #141

Open
wolftune opened this issue Sep 25, 2015 · 4 comments
Open

add to shakespeare chapter notes about in-line comments #141

wolftune opened this issue Sep 25, 2015 · 4 comments

Comments

@wolftune
Copy link
Contributor

There's no reference in the chapter about recommended comment syntax for the shakespeare languages

@wolftune
Copy link
Contributor Author

Is it $# for hamlet and /* comment */ for cassius/lucius/julius? I'm not clear on this myself, otherwise I might have put in a PR for this item… I know <!-- comment --> works in hamlet, but, hmm… am I missing anything? Any points here?

@chreekat
Copy link

$# for hamlet apparently: code, tests.

That's just in addition to the comments that exist for the languages being templated, which pass through unmolested. CSS and JavaScript use /* ... */, JS also uses // ..., and HTML uses <!-- .... -->

@wolftune
Copy link
Contributor Author

@chreekat by my tests, the html comment doesn't exactly pass through in that the comment is not present in the rendered HTML… perhaps it would be ideal if there were a way to include the comment in the rendered HTML…

@benjamingoldstein
Copy link
Contributor

I discovered that the way to have the comment rendered in the end HTML is to write:

\<!-- This will show up -->

A lot of these great tips are here in open issues, how can we help contribute them to the book so that Michael (et al?) doesn't have to schlep through it all, to extract the summary to include it in the book content?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants