The beginning of a single-line comment is marked with two hyphens
Added by Leslie H.
Step 1
In many programming languages, a single-line comment is a way to add notes or explanations in the code that are not executed. Show more…
Show all steps
Your feedback will help us improve your experience
Supreeta N and 69 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Using Java: Background Markdown is a formatting syntax used by many documents (these instructions, for example!) because of its plain-text simplicity and its ability to be translated directly into HTML. Task Let's write a simple markdown parser function that will take in a single line of markdown and be translated into the appropriate HTML. To keep it simple, we'll support only one feature of markdown in atx syntax: headers. Headers are designated by (1-6) hashes followed by a space, followed by text. The number of hashes determines the header level of the HTML output. Examples # Header will become Header ## Header will become Header ###### Header will become Header Additional Rules Header content should only come after the initial hashtag(s) plus a space character. Invalid headers should just be returned as the markdown that was received, no translation necessary. Spaces before and after both the header content and the hashtag(s) should be ignored in the resulting output.
Supreeta N.
Explain how to debug code by commenting it out.
Haricharan G.
Insert two blank lines below the tab-desk style rule and add a comment with the text, "Style rules for header area," and then create one style rule for h1 and h3 selectors within the mobile class that sets the padding to 2% and aligns text center.
Akash M.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD