Platforms to show: All Mac Windows Linux Cross-Platform
TidyDocumentMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Tidy | MBS Tools Plugin | 5.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The main class for using the tidy library in Xojo.
- 2 events
- event Filter(level as Integer, line as Integer, column as Integer, message as string) as boolean
- event PrettyPrintProgress(line as Integer, column as Integer, destLine as Integer)
- 136 properties
- property ErrorOutput as TidyOutputMBS
- property Handle as Integer
- property OptionAccessibilityCheck as Integer
- property OptionAddXmlDecl as Boolean
- property OptionAddXmlSpace as Boolean
- property OptionAltText as String
- property OptionAnchorAsName as Boolean
- property OptionAsciiChars as Boolean
- property OptionAssumeXmlProcins as Boolean
- property OptionBare as Boolean
- property OptionBreakBeforeBr as Boolean
- property OptionCharEncoding as Integer
- property OptionClean as Boolean
- property OptionCoerceEndtags as Boolean
- property OptionCssPrefix as String
- property OptionDecorateInferredUl as Boolean
- property OptionDoctype as String
- property OptionDoctypeMode as Integer
- property OptionDropEmptyElements as Boolean
- property OptionDropEmptyParas as Boolean
- property OptionDropFontTags as Boolean
- property OptionDropProprietaryAttributes as Boolean
- property OptionEncloseBlockText as Boolean
- property OptionEncloseText as Boolean
- property OptionErrorFile as String
- property OptionEscapeCdata as Boolean
- property OptionEscapeScripts as Boolean
- property OptionFixBackslash as Boolean
- property OptionFixBadComments as Boolean
- property OptionFixUri as Boolean
- property OptionForceOutput as Boolean
- property OptionGdoc as Boolean
- property OptionGnuEmacs as Boolean
- property OptionGnuEmacsFile as String
- property OptionHideComments as Boolean
- property OptionHideEndtags as Boolean
- property OptionIndent as Integer
- property OptionIndentAttributes as Boolean
- property OptionIndentCdata as Boolean
- property OptionIndentSpaces as Integer
- property OptionIndentWithTabs as Boolean
- property OptionInputEncoding as Integer
- property OptionInputXml as Boolean
- property OptionJoinClasses as Boolean
- property OptionJoinStyles as Boolean
- property OptionKeepTime as Boolean
- property OptionLanguage as String
- property OptionLiteralAttributes as Boolean
- property OptionLogicalEmphasis as Boolean
- property OptionLowerLiterals as Boolean
- property OptionMarkup as Boolean
- property OptionMergeDivs as Integer
- property OptionMergeEmphasis as Boolean
- property OptionMergeSpans as Integer
- property OptionNcr as Boolean
- property OptionNewBlocklevelTags as String
- property OptionNewEmptyTags as String
- property OptionNewInlineTags as String
- property OptionNewline as Integer
- property OptionNewPreTags as String
- property OptionNumericEntities as Boolean
- property OptionOmitOptionalTags as Boolean
- property OptionOutputBom as Integer
- property OptionOutputEncoding as Integer
- property OptionOutputFile as String
- property OptionOutputHtml as Boolean
- property OptionOutputXhtml as Boolean
- property OptionOutputXml as Boolean
- property OptionPreserveEntities as Boolean
- property OptionPunctuationWrap as Boolean
- property OptionQuiet as Boolean
- property OptionQuoteAmpersand as Boolean
- property OptionQuoteMarks as Boolean
- property OptionQuoteNbsp as Boolean
- property OptionRepeatedAttributes as Integer
- property OptionReplaceColor as Boolean
- property OptionShowBodyOnly as Integer
- property OptionShowErrors as Integer
- property OptionShowInfo as Boolean
- property OptionShowWarnings as Boolean
- property OptionSkipNested as Boolean
- property OptionSlideStyle as String
- property OptionSortAttributes as Integer
- property OptionSplit as Boolean
- property OptionStrictTagsAttributes as Boolean
- property OptionTabSize as Integer
- property OptionTidyMark as Boolean
- property OptionUppercaseAttributes as Boolean
- property OptionUppercaseTags as Boolean
- property OptionVerticalSpace as Integer
- property OptionWord2000 as Boolean
- property OptionWrap as Integer
- property OptionWrapAsp as Boolean
- property OptionWrapAttributes as Boolean
- property OptionWrapJste as Boolean
- property OptionWrapPhp as Boolean
- property OptionWrapScriptLiterals as Boolean
- property OptionWrapSections as Boolean
- property OptionWriteBack as Boolean
- 59 methods
- method AccessWarningCount as Integer
- method Body as TidyNodeMBS
- method CleanAndRepair as Integer
- method ConfigErrorCount as Integer
- method CopyConfig(otherDocument as TidyDocumentMBS) as boolean
- method DetectedGenericXml as boolean
- method DetectedHtmlVersion as Integer
- method DetectedXhtml as boolean
- method ErrorBuffer as string
- method ErrorCount as Integer
- method ErrorSummary
- method FileExists(filename as string) as boolean
- method GeneralInfo
- method GetBooleanOption(OptionID as Integer) as boolean
- method GetIntegerOption(OptionID as Integer) as Integer
- method GetStringOption(OptionID as Integer) as string
- method Head as TidyNodeMBS
- method Html as TidyNodeMBS
- method InstallErrorBuffer
- method LoadConfigFile(filename as string) as Integer
- method LoadConfigFileWithEncoding(Filename as string, CharacterEncoding as string) as Integer
- method NextOption(Iterator as TidyIteratorMBS) as TidyOptionMBS
- method NextRelatedOption(Iterator as TidyIteratorMBS) as TidyOptionMBS
- method NextUserDeclaredTag(OptionID as Integer, Iterator as TidyIteratorMBS) as string
- method OptionCharcterEncodingName(OptionID as Integer) as String
- method OptionCurrentPick(OptionID as Integer) as String
- method OptionForID(OptionID as Integer) as TidyOptionMBS
- method OptionForName(OptionName as string) as TidyOptionMBS
- method OptionIDForName(OptionName as string) as Integer
- method OptionList as TidyIteratorMBS
- method OptionResetToDefault(OptionID as Integer) as boolean
- method OptionsDifferentThanDefault as boolean
- method OptionsDifferentThanSnapshot as boolean
- method OptionsResetAllToDefault as boolean
- method OptionsResetToSnapshot as boolean
- method OptionsSnapshot as boolean
- method ParseFile(filename as string) as Integer
- method ParseSource(theInput as TidyInputMBS) as Integer
- method ParseString(data as string) as Integer
- method ParseStringOption(OptionName as string, value as string) as boolean
- method RelatedOptionsList(Option as TidyOptionMBS) as TidyIteratorMBS
- method ReportDoctype as Integer
- method Root as TidyNodeMBS
- method RunDiagnostics as Integer
- method SaveConfig(theOutput as TidyOutputMBS) as Integer
- method SaveConfigFile(filename as string) as Integer
- method SaveFile(filename as string) as Integer
- method SaveOutput(theOutput as TidyOutputMBS) as Integer
- method SaveString as string
- method SetBooleanOption(OptionID as Integer, value as boolean) as boolean
- method SetCharacterEncoding(encodingName as string) as Integer
- method SetErrorFile(filename as string) as boolean
- method SetInputCharacterEncoding(encodingName as string) as Integer
- method SetIntegerOption(OptionID as Integer, value as Integer) as boolean
- method SetOutputCharacterEncoding(encodingName as string) as Integer
- method SetStringOption(OptionID as Integer, value as string) as boolean
- method Status as Integer
- method UserDeclaredTagList as TidyIteratorMBS
- method WarningCount as Integer
- 4 shared methods
- shared method LibraryVersion as string
- shared method OptionNames as String() New in 24.4
- shared method ReleaseDate as string
- shared method Tidy(Input as string, byref Output as String, byref ErrorLog as String, options as Dictionary) as Integer New in 24.4
This class has no sub classes.
Some properties using for this class:
- TidyAttributeMBS.Document as TidyDocumentMBS
- TidyNodeMBS.Document as TidyDocumentMBS
- TidyOptionMBS.Document as TidyDocumentMBS
Some examples using this class:
Blog Entries
- News from the MBS Xojo Plugins Version 24.4
- MonkeyBread Software Releases the MBS Xojo Plugins in version 24.4
- MBS Xojo Plugins, version 24.4pr1
- MBS Xojo Plugins, version 22.5pr1
- MBS Xojo Plugins, version 19.4pr2
- MBS Xojo Plugins, version 17.2pr2
Xojo Developer Magazine
Release notes
- Version 24.4
- Added OptionNames and Tidy functions to TidyDocumentMBS class.
- Version 22.5
- Changed SaveString method in TidyDocumentMBS class to return string with right encoding set.
- Version 19.4
- Patched ReplaceObsoleteElements function in Tidy library to avoid endless recursion in ParseString method in TidyDocumentMBS class.
- Version 17.2
- Redone option properties on TidyDocumentMBS.
The items on this page are in the following plugins: MBS Tools Plugin.
TidyAttributeMBS - TidyInputMBS