From 689b97704992de3711dc3e7d6bd358ad57448a90 Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Mon, 16 Sep 2024 10:16:15 -0400 Subject: [PATCH] Enhance placeholder lines (#33615) --- aspnetcore/blazor/fundamentals/environments.md | 4 ++-- aspnetcore/blazor/fundamentals/logging.md | 4 ++-- aspnetcore/blazor/fundamentals/startup.md | 14 +++++++------- aspnetcore/blazor/globalization-localization.md | 2 +- .../location-of-javascript.md | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/aspnetcore/blazor/fundamentals/environments.md b/aspnetcore/blazor/fundamentals/environments.md index b9cd07814c..2d04dc09ff 100644 --- a/aspnetcore/blazor/fundamentals/environments.md +++ b/aspnetcore/blazor/fundamentals/environments.md @@ -87,7 +87,7 @@ Blazor Web App: ``` -In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name. For the location of the script, see . +**In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name.** For the location of the script, see . > [!NOTE] > For Blazor Web Apps that set the `webAssembly` > `environment` property in `Blazor.start` configuration, it's wise to match the server-side environment to the environment set on the `environment` property. Otherwise, prerendering on the server will operate under a different environment than rendering on the client, which results in arbitrary effects. For general guidance on setting the environment for a Blazor Web App, see . @@ -109,7 +109,7 @@ Standalone Blazor WebAssembly: ``` -In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name. For the location of the script, see . +**In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name.** For the location of the script, see . Using the `environment` property overrides the environment set by the [`blazor-environment` header](#set-the-client-side-environment-via-header). diff --git a/aspnetcore/blazor/fundamentals/logging.md b/aspnetcore/blazor/fundamentals/logging.md index 749ee16e14..76630f9db5 100644 --- a/aspnetcore/blazor/fundamentals/logging.md +++ b/aspnetcore/blazor/fundamentals/logging.md @@ -690,7 +690,7 @@ Blazor Server: ``` -In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name. For the location of the script, see . +**In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name.** For the location of the script, see . Example 2: Set the log level with an integer value. @@ -726,7 +726,7 @@ Blazor Server: ``` -In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name. For the location of the script, see . +**In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name.** For the location of the script, see . > [!NOTE] > Using an integer to specify the logging level in Example 2, often referred to as a *magic number* or *magic constant*, is considered a poor coding practice because the integer doesn't clearly identify the logging level when viewing the source code. If minimizing the bytes transferred to the browser is a priority, using an integer might be justified (consider removing the comment in such cases). diff --git a/aspnetcore/blazor/fundamentals/startup.md b/aspnetcore/blazor/fundamentals/startup.md index cd6ee1aadd..d3512c029d 100644 --- a/aspnetcore/blazor/fundamentals/startup.md +++ b/aspnetcore/blazor/fundamentals/startup.md @@ -89,7 +89,7 @@ Standalone Blazor WebAssembly and Blazor Server: ``` -In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name. For the location of the script, see . +**In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name.** For the location of the script, see . :::moniker range=">= aspnetcore-6.0" @@ -329,7 +329,7 @@ The following example starts Blazor when the document is ready: ``` -In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name. For the location of the script, see . +**In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name.** For the location of the script, see . ## Chain to the `Promise` that results from a manual start @@ -344,7 +344,7 @@ To perform additional tasks, such as JS interop initialization, use [`then`](htt ``` -In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name. For the location of the script, see . +**In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name.** For the location of the script, see . :::moniker range=">= aspnetcore-6.0" @@ -431,7 +431,7 @@ Standalone Blazor WebAssembly: ``` -In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name. For the location of the script, see . +**In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name.** For the location of the script, see . To customize more than just the URLs for boot resources, the `loadBootResource` function can call `fetch` directly and return the result. The following example adds a custom HTTP header to the outbound requests. To retain the default integrity checking behavior, pass through the `integrity` parameter. @@ -483,7 +483,7 @@ Standalone Blazor WebAssembly: ``` -In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name. For the location of the script, see . +**In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name.** For the location of the script, see . When the `loadBootResource` function returns `null`, Blazor uses the default loading behavior for the resource. For example, the preceding code returns `null` for the `dotnetjs` boot resource (`dotnet.*.js`) because the `dotnetjs` boot resource must either return `null` for default loading behavior or a URI for the source of the `dotnetjs` boot resource. @@ -779,7 +779,7 @@ In advanced programming scenarios, the `configureRuntime` function with the `dot The `configureRuntime` function can also be used to [enable integration with a browser profiler](https://github.com/dotnet/runtime/blob/main/src/mono/wasm/features.md#profiling). -In the following examples that set an environment variable: +For the placeholders in the following examples that set an environment variable: * The `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name. For the location of the script, see . * The `{NAME}` placeholder is the environment variable's name. @@ -839,7 +839,7 @@ To disable [enhanced navigation and form handling](xref:blazor/fundamentals/rout ``` -In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name. For the location of the script, see . +**In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name.** For the location of the script, see . :::moniker-end diff --git a/aspnetcore/blazor/globalization-localization.md b/aspnetcore/blazor/globalization-localization.md index c82a39db87..163fb04554 100644 --- a/aspnetcore/blazor/globalization-localization.md +++ b/aspnetcore/blazor/globalization-localization.md @@ -307,7 +307,7 @@ Prevent Blazor autostart by adding `autostart="false"` to [Blazor's ` ``` -In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name. For the location of the script, see . +**In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name.** For the location of the script, see . Add the following ``) inside the [closing `` ``` -In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name. For the location of the script, see . +**In the preceding example, the `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name.** For the location of the script, see . :::moniker range=">= aspnetcore-6.0" @@ -126,7 +126,7 @@ Place the JavaScript (JS) tags (``) with a script source (`s ``` -In the preceding example: +For the placeholders in the preceding example: * The `{BLAZOR SCRIPT}` placeholder is the Blazor script path and file name. For the location of the script, see . * The `{SCRIPT PATH AND FILE NAME (.js)}` placeholder is the path and script file name under `wwwroot`.