added switchable ruler markings to editor