title: How do I add comments on an algorithm environment in LaTeX?
body: <p>I am using LaTeX to write a pseudo algorithm using the <code>algorithm</code> package. I want to add comments on the code in a way that they get aligned. The following lines are what I could do, but the comments are not aligned. How do I do that?</p>
  
  <pre><code>\begin{algorithm}[H]
  \caption{}
  \label{}
      \begin{tabbing}
       quad \=\quad \=\quad \kill
       \keyw{for} each a $\in$ A \keyw{do} \\
       \&gt; command; \qquad \qquad $\blacktriangleright$ add text here \\
       \keyw{end} \\
  
  \end{tabbing}
  \end{algorithm}
  
  The comments are like that:
   one comment here\\
                 other here\\
       other here\\
  </code></pre>
  
  <p>How do I align them?</p>