how to make indent guides?

want to show indent guides when coding in codeMirror. CodeMirror supports a indentWithTabs setting,and set css cm-tab:{border-left: 1px solid silver;},but all tabs will be converted to guide line, however i only want the tabs at the beginning of the line to be converted to tabs on indent.
What is the best approach?