add space-style as pre
encode HTML before show code content
debug - missing last kept cnt