I'm using WinClip https://www.autohotkey.com/board/topic/74670-class-winclip-direct-clipboard-manipulations/ to format some text (change font color to blue) from the Clipboard upon pressing Ctrl + j. The text in the Clipboard has line breaks.
but when I use this code, it pastes without line breaks.
Code: Select all
#Include WinClipAPI.ahk
#Include WinClip.ahk
wc := new WinClip
^j::
html:="<font color='blue'>" . Clipboard . "</font></div>"
WinClip.SetHTML(html)
WinClip.Paste()
Return
How can I make it keep the line breaks?