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

Multiline comment support? #30

Open
Liokardo opened this issue Mar 5, 2021 · 1 comment
Open

Multiline comment support? #30

Liokardo opened this issue Mar 5, 2021 · 1 comment
Assignees

Comments

@Liokardo
Copy link

Liokardo commented Mar 5, 2021

Powershell has multiline comment syntax .
<# code here #>

I just got a use out of it on newline escaped command.

# https://github.com/PowerShell/PSReadLine
# In this example, when you type a single quote or double quote, ...
Set-PSReadLineKeyHandler `
  <# -Chord 'Oem7','Shift+Oem7' #> `
  -Chord '''','"' `
  ...
@juergenhoetzel juergenhoetzel self-assigned this Mar 5, 2021
@Silex
Copy link

Silex commented Sep 27, 2024

Ping. This bits me too. As you can see these comments end up to the left:

function Export-ExcelCustom {
  <#
.SYNOPSIS
Exports a collection of data to an Excel document with support for images.
.DESCRIPTION
This cmdlet produces a styled Excel spreadsheet where the data may
contain System.Drawing.Image objects.

If any images are present, the rows will all be resized to a uniform
height matching the tallest image available.

Each column will be resized to match the widest image in that column.
.EXAMPLE
Export-ExcelCustom -Path .\report.xlsx -InputObject (Get-VmsCameraReport -IncludeSnapshots) -Show

Exports the results of Get-VmsCameraReport with images to an Excel document.
.INPUTS
[object]
#>
  [CmdletBinding()]
  param(
    # Specifies a collection of data to export to Excel.
    [Parameter(Mandatory)]
    [object[]]
    $InputObject,

    # Specifies the path to save the Excel document including the file name.
    [Parameter(Mandatory)]
    [string]
    $Path,

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

No branches or pull requests

3 participants