FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Adding script tags for abort fetch snippet by rhygg · Pull Request #12 · roeib/JavaScript-snippets · GitHub

Adding script tags for abort fetch snippet - #12

Open
rhygg wants to merge 2 commits into
roeib:masterfrom
rhygg:patch-1
Open

Adding script tags for abort fetch snippet#12
rhygg wants to merge 2 commits into
roeib:masterfrom
rhygg:patch-1

Conversation

rhygg commented Jun 23, 2021
edited
Loading

Copy link
Copy Markdown

Why?

Since this is vanilla JS you can put it under <script></script> tags, so that it's easier to understand what's going on. Moreover the syntax highlight for the html snippet breaks due to the syntax highlight being configured to javascript. Keeping the syntax highlight to html keeps the highlight for html and javascript intact.

longqua69 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Your intention is good. It makes the snippet easier to understand. Removing the redundant space makes it better

Comment thread README.md Outdated
//html
<button id="download">Download</button>
<button id="abort">Abort</button>
<button id="abort">Abort</button>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I think you should remove the redundant space for aligning.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Yeah. sure.

longqua69 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Cool. Now it's time to merge

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL