FiB3 / beautyAmp

Format/Beautify/Prettify your AMPscript with this VS Code Extension.
https://marketplace.visualstudio.com/items?itemName=FiB.beautyAmp
BSD 4-Clause "Original" or "Old" License
2 stars 0 forks source link

Feature: Comments improvement #2

Closed JoernBerkefeld closed 9 months ago

JoernBerkefeld commented 11 months ago

cloned from https://github.com/sfm-cz/beautyAmp/issues/7 (opened by @FiB3 )


Just opening the new Comment idea for you (a "fork from https://github.com/sfm-cz/beautyAmp/issues/6)

I did notice one thing though: prettier would format multi-line comments that are prefixed slightly differently:

image

see how it adds 1 space in 2 out of those 3 cases? would be nice to mirror that behavior.

JoernBerkefeld commented 9 months ago

testeded with

const content =
    '%%[/*\n* example on how to use this\n* example on how to use this\n*/\n/* my ampscript */\n]%%';

and HTML off:

result:


%%[
    /*
     * example on how to use this
     * example on how to use this
     */
    /* my ampscript */
]%%

I can confirm this works as expected @FiB3 :)