My high school Chinese teacher once told us that if you like someone, you should always appear in front of him, let him remember you and get used to your presence in every corner of his life. In this way, once he doesn't see you, he will miss where you have been and wonder if he likes you.
Moreover, since we are friends, we should know each other's preferences, don't do what the other person hates, and do what he likes. But, ah, not too much. For example, you are obviously a straight man, and you have to study beauty cosmetics and skin care. Opponents also know that girls should not play games and swear every night, and make many male friends instantly, so that the other party is likely to treat you as a sister or brother, which is counterproductive. We should start with the details, for example, the other party sends a circle of friends who want to eat, orders takeout directly to his home, throws the screenshot in the past, and tells him to let the takeout staff deliver it to the door. Don't open the door until the delivery man has left. Pay attention to the details of personal safety.
Add a little ambiguous element to ordinary life, and let the other person daydream intentionally or unintentionally. After a period of time, let the other person ask you if you like me, but you can't admit it at this time. You should say what you think, test the other person's reaction, and then confess directly after a period of time. Don't be discouraged after being rejected, but continue to be friends with him, and then seize the opportunity to confess again.
In fact, you can also write love letters, which sounds a bit old-fashioned, but in this era of rampant electronic products, the true meaning of a handwritten love letter is very touching. Write clearly that you have had a crush on him for five years. Stop writing love letters, they are precious. Don't write it easily, the other party will get bored.
Finally, I wish you a successful confession!