PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WX20] Preserved format when paste text
[WX20] Preserved format when paste text
Iniciado por guest, 24,nov. 2015 12:36 - 4 respuestas
Publicado el 24,noviembre 2015 - 12:36
Hi,


for example
m_sql is string = [

select
product.id,
product.product_name
from
product

]

whenever i paste sql code into [ ] , the format (indent) always lose.

I often create/modify the sql script on sql management tools after confirm ok , i copy paste into windev . the problem is after paste all the indent gone .

is there a way to preserved the formatting ?
Publicado el 24,noviembre 2015 - 16:09
Hi CCC2,

may be you better can right-click on the sql-text and choose 'Coloring of the string' and then choose SQL.
Publicado el 24,noviembre 2015 - 16:33
Hi,

Please try to uncheck the option "Indent (pasted code is edited and indented to fit layout)" in the menu Tools | Options | Options of the code editor.

Regards,

Bruno
Publicado el 24,noviembre 2015 - 23:37
Quote
Stefan Bentvelsen

Hi CCC2,





may be you better can right-click on the sql-text and choose 'Coloring of the string' and then choose SQL.

Hi Stefan,

i don't see such option in wx20
Publicado el 25,noviembre 2015 - 03:02
hi,

found it , but all it does is change color for sql reserved words . the indent still disappear.