mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-03 15:51:20 +00:00
Add link titles in HTML export
- titles are usually shown as tool tip in a browser - almost useless, but made to be in line with Wiki behavior
This commit is contained in:
parent
a34907edef
commit
84e51c20e2
|
@ -20793,8 +20793,8 @@ SUB ExportCodeAs (docFormat$)
|
|||
pal% = LEN(page$): lkl% = LEN(lnk$)
|
||||
SELECT CASE LCASE$(docFormat$)
|
||||
CASE "html"
|
||||
MID$(eTxt$, ePos&, pal% + lkl% + 111) = "<a style=" + CHR$(34) + "text-decoration: none; color: " + lkc$ + ";" + CHR$(34) + " href=" + CHR$(34) + "https://qb64phoenix.com/qb64wiki/index.php?title=" + page$ + CHR$(34) + ">" + lnk$ + "</a>"
|
||||
ePos& = ePos& + pal% + lkl% + 111
|
||||
MID$(eTxt$, ePos&, (2 * pal%) + lkl% + 120) = "<a style=" + CHR$(34) + "text-decoration: none; color: " + lkc$ + ";" + CHR$(34) + " href=" + CHR$(34) + "https://qb64phoenix.com/qb64wiki/index.php?title=" + page$ + CHR$(34) + " title=" + CHR$(34) + page$ + CHR$(34) + ">" + lnk$ + "</a>"
|
||||
ePos& = ePos& + (2 * pal%) + lkl% + 120
|
||||
CASE "rich"
|
||||
MID$(eTxt$, ePos&, pal% + lkl% + 108) = "{\field{\*\fldinst HYPERLINK " + CHR$(34) + "https://qb64phoenix.com/qb64wiki/index.php?title=" + page$ + CHR$(34) + "}{\fldrslt{" + rtc$ + "\ul0 " + lnk$ + "}}}\cf0 "
|
||||
ePos& = ePos& + pal% + lkl% + 108
|
||||
|
|
Loading…
Reference in a new issue