Skip to content

Commit

Permalink
πŸ’„ Add line numbers to editor
Browse files Browse the repository at this point in the history
  • Loading branch information
henryhamon committed Jul 30, 2024
1 parent 0faed7e commit 4eb70b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/sqlzilla/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def assistant_interaction(sqlzilla, prompt):
col1, col2 = st.columns(2)

with col1:
editor_dict = code_editor(st.session_state.code_text, lang="sql", height=[10, 100], shortcuts="vscode")
editor_dict = code_editor(st.session_state.code_text, lang="sql", height=[10, 100], shortcuts="vscode", options={"placeholder":"Add your SQL here to test...", "showLineNumbers":True})

if len(editor_dict['text']) != 0:
st.session_state.code_text = editor_dict['text']
Expand Down

0 comments on commit 4eb70b3

Please sign in to comment.