how to selectively show indices as developer
This is not directly, what you asked for, but it may help anyway:
Only the indices of selected vertices are displayed. You may write an add-on, that selects only the vertices with certain indices to achieve what you want to.