First time here? Check our help page!
4

Multiline comments in .idf?

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.

BBel's avatar
525
BBel
asked 2015-11-23 09:04:48 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2015-11-23 10:32:30 -0500
edit flag offensive 0 remove flag 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
add a comment see more comments

2 Answers

3

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.

Jamie Bull's avatar
5.1k
Jamie Bull
answered 2015-11-24 03:17:42 -0500
edit flag offensive 0 remove flag delete link

Comments

1

Thanks Jamie, that looks interesting.

BBel's avatar BBel (2015-11-24 03:36:56 -0500) edit
add a comment see more comments
3

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

rraustad's avatar
13.8k
rraustad
answered 2015-11-23 09:23:29 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments