widget.setTabs(
getPreferenceStore().getInt(
AbstractDecoratedTextEditorPreferenceConstants.EDITOR_TAB_WIDTH));
widget.addVerifyListener(softTabListener);
ITextViewerExtension2 extension= (ITextViewerExtension2) getSourceViewer();
pairMatcher = new JavaScriptCharacterPairMatcher();
pairMatcher.setEnable(getPreferenceStore().getBoolean(HTMLPlugin.PREF_PAIR_CHAR));
MatchingCharacterPainter painter = new MatchingCharacterPainter(getSourceViewer(), pairMatcher);
painter.setColor(Display.getDefault().getSystemColor(SWT.COLOR_GRAY));
extension.addPainter(painter);
hyperlinkDetector = new JavaScriptHyperlinkDetector();
viewer.setHyperlinkDetectors(new IHyperlinkDetector[]{hyperlinkDetector}, SWT.CTRL);
update();