File Templates and Copyright settings strip multiple hashes ##

Answered

Been trying to set up a code template or a copyright template to add our EULA to the top of new files. Our EULA has ASCII lines of multiple hashes, and when we add it to either method, they get stripped out, along we all text between them.  I've tried several different common escape sequences, but none seemed to work.  Is there a way to have this EULA automatically added to our files with the hashes included?  Thank you.

IntelliJ IDEA 2022.3.2

0
2 comments

Hi - see if it helps to apply the #[[don't parse me!]]# Velocity syntax to escape the multiple hashes:

/* 
 * #[[###################################################################]]#
 * File Name: $file.pathName
 * Copyright(c) 1999-$today.year, ABC ALL RIGHTS RESERVED.
 * #[[####################################################################]]#
 */

 See also https://youtrack.jetbrains.com/issue/IJPL-163176

1

Awesome, that worked!  Thank you for your help!

0

Please sign in to leave a comment.