St.code with line numbers and line highlighting

Hi, does or will st.code will display line numbers and line highlighting?

Hi, I have found a solution:

import streamlit.components.v1 as components

html = β€œβ€"

class A:
    def __init__(self):
        pass
def run(self):
    a = 5
    b = a + 7 + 5.0
    ll = a + 6.4
    c = a + b + 3
    d = b + c





"""

components.html(html, height=200, scrolling=True)

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.