First time here? Check out the Help page!

Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
4

Multiline comments in .idf?

asked 9 years ago

updated 9 years ago

A short question. Is it possible to comment out multiple lines at once in an E+ idf file? I can't seem to find information on the topic.

Preview: (hide)

Comments

Can you expand on what you are trying to do? Maybe give an example?

macumber's avatar macumber  ( 9 years ago )

I'm using a text editor to make/change my idf files because I believe that this gives me the most control. (no openstudio, designbuilder ...) I'm trying to discard information without deleting it. The reason for not deleting is that it's easy to make- and track changes within a file without losing information (I think that comparing between two versions of the same file, e.g. with notepad++ or meld, is less efficient ). I have to type a '!' before every line to make E+ 'forget' it and I was wondering if there was an alternative to comment out multiple lines at once.

BBel's avatar BBel  ( 9 years ago )

Thanks, that helps. As far as I know there is no block comment syntax for IDF, you have to put a ! on each line.

macumber's avatar macumber  ( 9 years ago )

2 Answers

Sort by » oldest newest most voted
3

answered 9 years ago

If you are editing in Notepad++ and are using the user-defined language syntax highlighting from this question, then you can toggle comments for blocks of code by selecting them and hitting Ctrl-Q.

Preview: (hide)
link

Comments

1

Thanks Jamie, that looks interesting.

BBel's avatar BBel  ( 9 years ago )
3

answered 9 years ago

No, it's a text file and is not interpreted as it is read in.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 9 years ago

Seen: 450 times

Last updated: Nov 24 '15