This is my code
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[thmmarks,standard,thref]{ntheorem}
\usepackage{graphicx}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\theoremseparator{.}
\theoremsymbol{\ensuremath{\square}}
\newtheorem{sol}{Soluttion}
\begin{document}
\begin{sol}
This is an exercise
\end{sol}
\begin{sol}
This is an exercise
\begin{equation}
x^2 - 2(m+1)x - m^2 - 1 = 0.
\end{equation}
\end{sol}
\end{document}
I input endmark, but after \begin{equation}
\end{equation}
I can not receive endmark.

`, they'll be marked as code, as can be seen in Gonzalo’s edit. You can also highlight the code and click the “code” button (with “{}” on it). – Tobi May 29 '12 at 14:49amsmathoption to ntheorem after amsmath is loaded, but this does not fix things on my end. – Dylan Moreland May 29 '12 at 17:31equationenvironment; after the second run, the endmark will be placed. Also notice that you should loadntheoremincluding theamsmathoption:\usepackage[amsmath,thmmarks,standard,thref]{ntheorem}. – Gonzalo Medina May 29 '12 at 17:39