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 2015-11-23 09:04:48 -0500

updated 2015-11-23 10:32:30 -0500

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.

edit retag flag offensive close merge delete

Comments

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

macumber's avatar macumber  ( 2015-11-23 10:02:12 -0500 )edit

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  ( 2015-11-23 11:36:48 -0500 )edit

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  ( 2015-11-23 12:08:34 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2015-11-24 03:17:42 -0500

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.

edit flag offensive delete link more

Comments

1

Thanks Jamie, that looks interesting.

BBel's avatar BBel  ( 2015-11-24 03:36:56 -0500 )edit
3

answered 2015-11-23 09:23:29 -0500

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

edit flag offensive delete link more

Your Answer

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

Add Answer

Training Workshops

Question Tools

1 follower

Stats

Asked: 2015-11-23 09:04:48 -0500

Seen: 256 times

Last updated: Nov 24 '15