I want to use have numbering like equations for some regular text. So I am using equation environment. I am not writing any mathematics in it, so I'll also use textrm.
This is my basic code -
\documentclass[fleqn]{article}
\setlength{\mathindent}{0pt}
\begin{document}
\noindent Select an\\
Select apple\\
\begin{equation}
\textrm{Merge an \& apple.}
\end{equation}
\end{document}
If I am not wrong the equation comes as a new paragraph as it has an indent and it also leaves some space in between. (Please correct me if I'm wrong.) Basically I don't want this paragraph & I want this change globally. I've already removed the indent by modifying the mathindent Is there any way to change something like mathpar?
Screenshot of the desired output - (but with the equation number)

Code with the help of the solution provided by leandriis -
\documentclass[fleqn]{article}
\usepackage{amsmath}
\setlength{\mathindent}{0pt}
\newcounter{mynumber}
\newcommand{\myno}[1]{\refstepcounter{mynumber}(\arabic{mynumber})\label{#1}}
\begin{document}
\noindent Select an\\
Select apple\\
Merge an \& apple. \myno{first}\\
Now merge \eqref{first}
\end{document}
This code produced -



equationenvironment if there will be no math in it? – leandriis Oct 03 '19 at 13:00\usepackage{lineno}\makeLineNumberRightand\linelabel{mylabel}. But also, (1) An algorithm is not regular text is definitely not an equation. (2) It would have been very helpful to have mentioned why you want this. – Teepeemm Oct 03 '19 at 15:27algorithm2eoralgorithmicxpackages. – BambOo Oct 03 '19 at 17:30listingswithout highlighting (but with line numbers). @Teepeemm it does not really seem like a duplicate of that question? That is for every line in a document, this is just for an environment. – Marijn Oct 03 '19 at 21:11