How can you stop anorexic behavior?

See a specialist. There are a lot of specialists in anorexia. They can work with you from a variety of perspectives like behavior therapy and/or cognitive therapy. Reading is also valuable. There are great books out there on anorexia and learning to manage the disorder and behavior, like decoding anorexia: how breakthroughs in science offer hope for eating disorders.