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

Editorial: Escape backticks in code examples. Fixes #137 #138

Merged
merged 1 commit into from
Jun 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ if (window.screen.isExtended) {
// Detect when a screen is added or removed.
screenDetails.addEventListener('screenschange', onScreensChange);

// Detect when the current `ScreenDetailed` or an attribute thereof changes.
// Detect when the current \`ScreenDetailed\` or an attribute thereof changes.
screenDetails.addEventListener('currentscreenchange', onCurrentScreenChange);

// Find the primary screen, show some content fullscreen there.
Expand All @@ -121,7 +121,7 @@ if (window.screen.isExtended) {
\`width=${otherScreen.availWidth},\` +
\`height=${otherScreen.availHeight}\`);
} else {
// Detect when an attribute of the legacy `Screen` interface changes.
// Detect when an attribute of the legacy \`Screen\` interface changes.
window.screen.addEventListener('change', onScreenChange);

// Arrange content within the traditional single-screen environment...
Expand Down Expand Up @@ -150,7 +150,7 @@ Observing legacy {{Screen}} attribute changes is useful for adapting content, ev

```js
screen.addEventListener('change', e => {
// An attribute of the legacy `Screen` interface has changed.
// An attribute of the legacy \`Screen\` interface has changed.
});
```

Expand Down Expand Up @@ -196,7 +196,7 @@ function processScreenDetails(screenDetails) {
A common multi-screen use case is to present some content fullscreen on a specific screen. The screen may be selected interactively, or automatically selected based on screen attributes or prior user selections. A screen, once selected, can be passed to the {{Element/requestFullscreen()}} method.

```js
// Call an assumed helper that returns a selected `ScreenDetailed` instance.
// Call an assumed helper that returns a selected \`ScreenDetailed\` instance.
const screenDetailed = getScreenForSlideshow();

// Request that a particular element be shown fullscreen on the selected screen.
Expand Down