Adding comments to .htaccess

Comments in .htaccess must be on their own line, not appended to other statements. The last rule doesn’t work because the comments aren’t really comments. Comments in htaccess must begin with a # (must be at the start of a line), and not arbitrarily anywhere. In the second case, the #bla bla bla is interpreted … Read more

Jinja2 inline comments

Jinja2 has no support for comments within a {{ … }} statement. You can only use comments outside of such statements, and then only with {# .. #} or ## comment. {# .. #} is only meant for disabling part of a template or adding comments outside of other Jinja2 syntax. You can’t nest these. … Read more

Where to put the doxygen comment blocks for an internal library – in H or in CPP files? [closed]

I like to make use of the fact that names can be documented in multiple places. In the header file, I write a brief description of the method, and document all its parameters – these are less likely to change than the implementation of the method itself, and if they do, then the function prototype … Read more

R: Comment out block of code [duplicate]

Most of the editors take some kind of shortcut to comment out blocks of code. The default editors use something like command or control and single quote to comment out selected lines of code. In RStudio it’s Command or Control+/. Check in your editor. It’s still commenting line by line, but they also uncomment selected … Read more