When I was at age of 18-19, even though I could read the Quran at that time (Arabic), perform salah and fasted the full month on Ramadhan, I didn't know what "shirk" is, didn't heard of this word before age 21. At this age, I started gaining knowledge of this teaching of Islam, our beloved prophet and haram/halal all other stuff.
At this very age of 18-19, I thought of going to other place worship (i.e temple) and pray like my friends used to do, as all my friends are non-Muslim. Now I realized that I thought of doing shirk. It is worst thing to do in one's life.
My question is: How can I repent, I have realized and asked with heart for forgiveness. Will I be forgiven?