private void ColorizeKeySeq() { SprContext ctx = new SprContext(); ctx.EncodeAsAutoTypeSequence = true; PwEntry pe = new PwEntry(true, true); pe.Strings = m_vStringDict; ctx.Entry = pe; SprSyntax.Highlight(m_rbKeySeq, ctx); }
private void rtbSequence_TextChanged(object sender, EventArgs e) { string sequence = rtbSequence.Text; int i = m_Sequences.IndexOf(sequence); if (i == -1) { i = m_Sequences.Count - 1; } cbSequences.SelectedIndex = Math.Min(i, cbSequences.Items.Count - 1); SprContext ctx = new SprContext(); ctx.EncodeAsAutoTypeSequence = true; ctx.Entry = m_peCtxEntry; SprSyntax.Highlight(rtbSequence, ctx); }