|
<%
Sub MyInitLinkPatterns()
' add here any custom defined link patterns
' and/or change cq override the patterns defined by default in InitLinkPatterns.
End Sub
' Here you can define your own custom made Processing Instructions.
' See also http://openwiki.com/?HelpOnProcessingInstructions
Function MyWikifyProcessingInstructions(pText)
' example of dealing with a processing instruction
If m(pText, "^#STOPWORDS\s+", False, False) Then
' Add every word following the #STOPWORDS PI to the gStopWords string
' All these words, when present in the current page, will NOT be hyperlinked.
Dim vPos, vTemp
vPos = InStr(pText, vbCR)
If vPos > 0 Then
vTemp = Trim(Mid(pText, 11, vPos - 11))
If vTemp <> "" Then
vTemp = s(vTemp, "\s+", "|", False, True)
gStopWords = gStopWords & "|" & vTemp
End If
pText = Mid(pText, vPos + 1)
End If
End If
' process other processing instructions you'd like to create here
' If m(pText, "^#PRIVATE", False, False) Then
' Response.Redirect(gScriptName & "?a=" & gAction & "&p=" & Server.URLEncode("private") & "&redirect=" & Server.URLEncode(FreeToNormal(gPage)))
' End If
MyWikifyProcessingInstructions = pText
End Function
Function MyMultiLineMarkupStart(pText)
' pText = s(pText, "<svg>([\s\S]*?)<\/svg>", "&StoreSVGML($1)", True, True)
MyMultiLineMarkupStart = pText
End Function
Function MyMultiLineMarkupEnd(pText)
' The <comment> tag stores text that doesn't show up at all.
' Uncomment the next line if you want to support the <comment> tag
' pText = s(pText, "\<comment\>([\s\S]*?)\<\/comment\>", "", True, True)
MyMultiLineMarkupEnd = pText
End Function
Function MyLastMinuteChanges(pText)
MyLastMinuteChanges = pText
End Function
%>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
Jonathan Hodgson works as Software Developer in London, UK.
He started programming in the '80s on a trusty 48k Spectrum before moving to PC development in the early 90s. During the working week most of his time is spent involved in application development both Windows and Web-based; .NET, C#, ASP.NET, SQL Server.
He is a Microsoft Certified Software Developer (MCSD) and MCP for developing web applications using ASP.NET in C# and is always looking for new projects and challenges to work on.
http://www.jonathanhodgson.co.uk/