1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-14 10:45:06 +02:00

[powershell/*] fix syntax highlighting

This commit is contained in:
Boris Verkhovskiy
2024-04-03 04:14:45 -07:00
parent f5516715c0
commit ae7197c6a6
2 changed files with 6 additions and 6 deletions

View File

@@ -34,7 +34,7 @@ $PSVersionTable
Para obtener ayuda: Para obtener ayuda:
``` ```powershell
# Si necesita encontrar algún comando # Si necesita encontrar algún comando
Get-Command about_* # tiene por abreviación (o alias): gcm Get-Command about_* # tiene por abreviación (o alias): gcm
Get-Command -Verb Add # lista todos los comandos que tienen por verbo 'Add' Get-Command -Verb Add # lista todos los comandos que tienen por verbo 'Add'
@@ -51,7 +51,7 @@ Update-Help # Actualiza la ayuda (debe ser ejecutado en una consola elevada como
Acá inicia el tutorial: Acá inicia el tutorial:
``` ```powershell
# Como ya lo notó, los comentarios empiezan con # # Como ya lo notó, los comentarios empiezan con #
# Ejemplo de un simple hola mundo: # Ejemplo de un simple hola mundo:
@@ -299,7 +299,7 @@ $Shortcut.Save()
Configurando el shell Configurando el shell
``` ```powershell
# $Profile es la ruta completa para su `Microsoft.PowerShell_profile.ps1` # $Profile es la ruta completa para su `Microsoft.PowerShell_profile.ps1`
# Todo el código alojado allí será ejecutado cuando se ejecuta una nueva sesión de PS # Todo el código alojado allí será ejecutado cuando se ejecuta una nueva sesión de PS
if (-not (Test-Path $Profile)) { if (-not (Test-Path $Profile)) {

View File

@@ -677,7 +677,7 @@ Powershell as a Tool:
Getting Help: Getting Help:
```Powershell ```powershell
# Find commands # Find commands
Get-Command about_* # alias: gcm Get-Command about_* # alias: gcm
Get-Command -Verb Add Get-Command -Verb Add
@@ -694,7 +694,7 @@ Update-Help # Run as admin
If you are uncertain about your environment: If you are uncertain about your environment:
```Powershell ```powershell
Get-ExecutionPolicy -List Get-ExecutionPolicy -List
Set-ExecutionPolicy AllSigned Set-ExecutionPolicy AllSigned
# Execution policies include: # Execution policies include:
@@ -708,7 +708,7 @@ help about_Execution_Policies # for more info
$PSVersionTable $PSVersionTable
``` ```
```Powershell ```powershell
# Calling external commands, executables, # Calling external commands, executables,
# and functions with the call operator. # and functions with the call operator.
# Exe paths with arguments passed or containing spaces can create issues. # Exe paths with arguments passed or containing spaces can create issues.