Fresh IDE . Check-in [1c0a2da404]
Not logged in

This repository is a mirror!

The original is located on: https://fresh.flatassembler.net/fossil/repo/fresh
If you want to follow the project, please update your remote-url

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Changes in bbcode.asm in order to make it compatible with the developed markdown compatible parser.
Timelines: family | ancestors | descendants | both | FreshLibDev
Files: files | file ages | folders
SHA1:1c0a2da404fbd936022c685376a312be6d7994b4
User & Date: johnfound 2018-11-08 09:48:00
Context
2018-11-10
11:50
More detailed dump of segmentation faults. check-in: 6bf473646c user: johnfound tags: FreshLibDev
2018-11-08
09:48
Changes in bbcode.asm in order to make it compatible with the developed markdown compatible parser. check-in: 1c0a2da404 user: johnfound tags: FreshLibDev
2018-10-19
13:53
CreatePipe and WaitProcessExit for Linux implemented. Fixed a small issue in Exec2 for Linux. check-in: cd025fbff5 user: johnfound tags: FreshLibDev
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to freshlib/data/bbcode.asm.

118
119
120
121
122
123
124

125
126

127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153

154
155
156
157
158
159
160
  dd flags
end if
}

fEmptyAttr   = $00000001        ; empty value of the attribute is acceptable.
fBlockTag    = $00000002        ; This is a block tag. Allows paragraph generation and resets its state.
fDisableTags = $00000004        ; Disable tag generation inside this block; The only tag that is recongized is the respective closing tag.


iglobal


  tagStrong       onetag txt '<strong>',                              0,              txt '</strong>',    0
  tagEm           onetag txt '<em>',                                  0,              txt '</em>',        0
  tagUnderlined   onetag txt '<span class="underlined">',             0,              txt '</span>',      0
  tagDel          onetag txt '<del>',                                 0,              txt '</del>',       0
  tagInlineCode   onetag txt '<code>',                                0,              txt '</code>',      0
  tagCode         onetag txt '<code class="block ',                   txt '">',       txt '</code>',      fBlockTag or fEmptyAttr or fDisableTags
  tagQuote        onetag txt '<blockquote><header>',                  txt '</header>',txt '</blockquote>',fBlockTag or fEmptyAttr
  tagUL           onetag txt '<ul>',                                  0,              txt '</ul>',        fBlockTag
  tagOL           onetag txt '<ol type="',                            txt '">',       txt '</ol>',        fBlockTag or fEmptyAttr
  tagListItem     onetag txt '<li>',                                  0,              0,                  fBlockTag
  tagTable        onetag txt '<table>',                               0,              txt '</table>',     fBlockTag
  tagTR           onetag txt '<tr>',                                  0,              txt '</tr>',        fBlockTag
  tagTH           onetag txt '<th>',                                  0,              txt '</th>',        fBlockTag
  tagTD           onetag txt '<td>',                                  0,              txt '</td>',        fBlockTag
  tagSpoiler      onetag txt '<details><summary>Spoiler</summary>',   0,              txt '</details>',   fBlockTag
  tagURL          onetag txt '<a href="',                             txt '">',       txt '</a>',         0
  tagImg          onetag txt '<img alt="',                            txt '" src="',  txt '" />',         fBlockTag or fDisableTags
  tagSize         onetag txt '<span style="font-size:',               txt '">',       txt '</span>',      0
  tagColor        onetag txt '<span style="color:',                   txt '">',       txt '</span>',      0
  tagEmail        onetag txt '<a href="mailto:',                      txt '">',       txt '</a>',         0
  tagH1           onetag txt '<h1>',                                  0,              txt '</h1>',        fBlockTag
  tagH2           onetag txt '<h2>',                                  0,              txt '</h1>',        fBlockTag
  tagH3           onetag txt '<h3>',                                  0,              txt '</h1>',        fBlockTag
  tagH4           onetag txt '<h4>',                                  0,              txt '</h1>',        fBlockTag
  tagH5           onetag txt '<h5>',                                  0,              txt '</h1>',        fBlockTag
  tagH6           onetag txt '<h6>',                                  0,              txt '</h1>',        fBlockTag


  ; Emoticons tags.

  emoSmile        onetag <'<img class="emoticon" src="', EMOTICONS_PATH, 'smile.gif" alt=":)">'>,   0,              0,              0
  emoLol          onetag <'<img class="emoticon" src="', EMOTICONS_PATH, 'lol.gif" alt=":D">'>,     0,              0,              0
  emoRofl         onetag <'<img class="emoticon" src="', EMOTICONS_PATH, 'rofl.gif" alt=":D">'>,    0,              0,              0
  emoWink         onetag <'<img class="emoticon" src="', EMOTICONS_PATH, 'wink.gif" alt=";)">'>,    0,              0,              0







>


>










|










|
|
|
|
|
|
>







118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
  dd flags
end if
}

fEmptyAttr   = $00000001        ; empty value of the attribute is acceptable.
fBlockTag    = $00000002        ; This is a block tag. Allows paragraph generation and resets its state.
fDisableTags = $00000004        ; Disable tag generation inside this block; The only tag that is recongized is the respective closing tag.
fLines       = $00000008        ; the tag can contain text lines.

iglobal
  align 4

  tagStrong       onetag txt '<strong>',                              0,              txt '</strong>',    0
  tagEm           onetag txt '<em>',                                  0,              txt '</em>',        0
  tagUnderlined   onetag txt '<span class="underlined">',             0,              txt '</span>',      0
  tagDel          onetag txt '<del>',                                 0,              txt '</del>',       0
  tagInlineCode   onetag txt '<code>',                                0,              txt '</code>',      0
  tagCode         onetag txt '<code class="block ',                   txt '">',       txt '</code>',      fBlockTag or fEmptyAttr or fDisableTags
  tagQuote        onetag txt '<blockquote><header>',                  txt '</header>',txt '</blockquote>',fBlockTag or fEmptyAttr
  tagUL           onetag txt '<ul>',                                  0,              txt '</ul>',        fBlockTag
  tagOL           onetag txt '<ol type="',                            txt '">',       txt '</ol>',        fBlockTag or fEmptyAttr
  tagListItem     onetag txt '<li>',                                  0,              txt '</li>',        fBlockTag
  tagTable        onetag txt '<table>',                               0,              txt '</table>',     fBlockTag
  tagTR           onetag txt '<tr>',                                  0,              txt '</tr>',        fBlockTag
  tagTH           onetag txt '<th>',                                  0,              txt '</th>',        fBlockTag
  tagTD           onetag txt '<td>',                                  0,              txt '</td>',        fBlockTag
  tagSpoiler      onetag txt '<details><summary>Spoiler</summary>',   0,              txt '</details>',   fBlockTag
  tagURL          onetag txt '<a href="',                             txt '">',       txt '</a>',         0
  tagImg          onetag txt '<img alt="',                            txt '" src="',  txt '" />',         fBlockTag or fDisableTags
  tagSize         onetag txt '<span style="font-size:',               txt '">',       txt '</span>',      0
  tagColor        onetag txt '<span style="color:',                   txt '">',       txt '</span>',      0
  tagEmail        onetag txt '<a href="mailto:',                      txt '">',       txt '</a>',         0
  tagH1           onetag txt '<h1>',                                  0,              txt '</h1>',        fBlockTag or fLines
  tagH2           onetag txt '<h2>',                                  0,              txt '</h2>',        fBlockTag or fLines
  tagH3           onetag txt '<h3>',                                  0,              txt '</h3>',        fBlockTag or fLines
  tagH4           onetag txt '<h4>',                                  0,              txt '</h4>',        fBlockTag or fLines
  tagH5           onetag txt '<h5>',                                  0,              txt '</h5>',        fBlockTag or fLines
  tagH6           onetag txt '<h6>',                                  0,              txt '</h6>',        fBlockTag or fLines
  tagPara         onetag txt '<p>',                                   0,              txt '</p>',         fLines

  ; Emoticons tags.

  emoSmile        onetag <'<img class="emoticon" src="', EMOTICONS_PATH, 'smile.gif" alt=":)">'>,   0,              0,              0
  emoLol          onetag <'<img class="emoticon" src="', EMOTICONS_PATH, 'lol.gif" alt=":D">'>,     0,              0,              0
  emoRofl         onetag <'<img class="emoticon" src="', EMOTICONS_PATH, 'rofl.gif" alt=":D">'>,    0,              0,              0
  emoWink         onetag <'<img class="emoticon" src="', EMOTICONS_PATH, 'wink.gif" alt=";)">'>,    0,              0,              0