Highlighting of SQL inside strings
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 32/100
Direzione di ricerca
Non vengono nominati file o test. Riproduci i due esempi di stringhe Python nelle integrazioni dell’editor supportate, quindi esamina i punti di ingresso per la gestione delle stringhe Python e l’evidenziazione SQL per capire perché CREATE TABLE differisce da INSERT. Il lavoro è completato quando le parole chiave SQL ricevono un’evidenziazione coerente in entrambi gli esempi senza compromettere le normali stringhe Python.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The stock Python package performs syntax highlighting inside strings containing SQL commands. That's rather useful, even though the implementation might need some more work. In this example:
create = 'CREATE TABLE test (id INT, name TEXT);'
insert = 'INSERT INTO test VALUES (1, "Bob")'
in the second line, words recognized as SQL are highlighted, but not in the first one, where "CREATE TABLE" has the same color as the non-reserved names.
(Actually, as you can see, even Github's Markdown does it, with exactly the same behavior, so perhaps something is wrong with the first line, although it does execute properly)
Do you consider this a useful addition?
- Lingua principale
- JavaScript
- Stelle
- 1.4k
- Fork
- 98
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di MagicStack/MagicPython
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
MagicStack/MagicPython#275 · 1 reazione ·
-
Support for type parameters Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
MagicStack/MagicPython#273 · 7 reazioni ·
-
Color python properties Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
MagicStack/MagicPython#269 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
MagicStack/MagicPython#267 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
MagicStack/MagicPython#265 · 2 commenti ·
Tutte le issue di MagicStack/MagicPython
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Seeed-Studio/wiki-documents#5655 · 2 commenti ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
capricorn86/happy-dom#2435 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Edit: CW+ Apertachannels:edit check:passed
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
01 type: bug 30 needs: triage 99 tag: UX Accessibility
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100