diff --git a/.gitignore b/.gitignore index bdc3535f..28b806ee 100644 --- a/.gitignore +++ b/.gitignore @@ -1,108 +1,108 @@ -# Build Folders (you can keep bin if you'd like, to store dlls and pdbs) -[Bb]in/ -[Oo]bj/ - -# mstest test results -TestResults - -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. - -# User-specific files -*.suo -*.user -*.sln.docstates - -# Build results -[Dd]ebug/ -[Rr]elease/ -x64/ -*_i.c -*_p.c -*.ilk -*.meta -*.obj -*.pch -*.pdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.log -*.vspscc -*.vssscc -.builds - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opensdf -*.sdf - -# Visual Studio profiler -*.psess -*.vsp -*.vspx - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper* - -# NCrunch -*.ncrunch* -.*crunch*.local.xml - -# Installshield output folder -[Ee]xpress - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish - -# Publish Web Output -*.Publish.xml - -# NuGet Packages Directory -packages - -# Windows Azure Build Output -csx -*.build.csdef - -# Windows Store app package directory -AppPackages/ - -# Others -[Bb]in -[Oo]bj -sql -TestResults -[Tt]est[Rr]esult* -*.Cache -ClientBin -[Ss]tyle[Cc]op.* -~$* -*.dbmdl -Generated_Code #added for RIA/Silverlight projects - -# Backup & report files from converting an old project file to a newer -# Visual Studio version. Backup files are not needed, because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML +# Build Folders (you can keep bin if you'd like, to store dlls and pdbs) +[Bb]in/ +[Oo]bj/ + +# mstest test results +TestResults + +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.sln.docstates + +# Build results +[Dd]ebug/ +[Rr]elease/ +x64/ +*_i.c +*_p.c +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.log +*.vspscc +*.vssscc +.builds + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf + +# Visual Studio profiler +*.psess +*.vsp +*.vspx + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper* + +# NCrunch +*.ncrunch* +.*crunch*.local.xml + +# Installshield output folder +[Ee]xpress + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish + +# Publish Web Output +*.Publish.xml + +# NuGet Packages Directory +packages + +# Windows Azure Build Output +csx +*.build.csdef + +# Windows Store app package directory +AppPackages/ + +# Others +[Bb]in +[Oo]bj +sql +TestResults +[Tt]est[Rr]esult* +*.Cache +ClientBin +[Ss]tyle[Cc]op.* +~$* +*.dbmdl +Generated_Code #added for RIA/Silverlight projects + +# Backup & report files from converting an old project file to a newer +# Visual Studio version. Backup files are not needed, because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML diff --git a/Binary/FastColoredTextBox.dll b/Binary/FastColoredTextBox.dll deleted file mode 100644 index 4c895334..00000000 Binary files a/Binary/FastColoredTextBox.dll and /dev/null differ diff --git a/Binary/FastColoredTextBox.xml b/Binary/FastColoredTextBox.xml deleted file mode 100644 index d9852c9c..00000000 --- a/Binary/FastColoredTextBox.xml +++ /dev/null @@ -1,3280 +0,0 @@ - - - - FastColoredTextBox - - - - - Item of autocomplete menu - - - - - Returns text for inserting into Textbox - - - - - Compares fragment text with this item - - - - - Returns text for display into popup menu - - - - - This method is called after item inserted into text - - - - - Title for tooltip. - - Return null for disable tooltip for this item - - - - Tooltip text. - - For display tooltip text, ToolTipTitle must be not null - - - - Menu text. This text is displayed in the drop-down menu. - - - - - Fore color of text of item - - - - - Back color of item - - - - - Item do not appears - - - - - Item appears - - - - - Item appears and will selected - - - - - Autocomplete item for code snippets - - Snippet can contain special char ^ for caret position. - - - - Compares fragment text with this item - - - - - This autocomplete item appears after dot - - - - - This Item does not check correspondence to current text fragment. - SuggestItem is intended for dynamic menus. - - - - - Popup menu for autocomplete - - - - - Regex pattern for serach fragment around caret - - - - - Minimum fragment length for popup - - - - - User selects item - - - - - It fires after item inserting - - - - - Occurs when popup menu is opening - - - - - Allow TAB for select menu item - - - - - Interval of menu appear (ms) - - - - - Sets the max tooltip window size - - - - - Tooltip will perm show and duration will be ignored - - - - - Back color of selected item - - - - - Border color of hovered item - - - - - Shows popup menu immediately - - If True - MinFragmentLength will be ignored - - - - Minimal size of menu - - - - - Image list of menu - - - - - Tooltip duration (ms) - - - - - Tooltip - - - - - Base class for bookmark collection - - - - - Collection of bookmarks - - - - - Removes bookmark by line index - - - - - Returns Bookmark by index. - - - - - Bookmark of FastColoredTextbox - - - - - Name of bookmark - - - - - Line index - - - - - Color of bookmark sign - - - - - Scroll textbox to the bookmark - - - - - Char and style - - - - - Unicode character - - - - - Style bit mask - - Bit 1 in position n means that this char will rendering by FastColoredTextBox.Styles[n] - - - - Shows document map of FCTB - - - - - Scale - - - - - Scrollbar visibility - - - - - Exports colored text as HTML - - At this time only TextStyle renderer is supported. Other styles is not exported. - - - - Use nbsp; instead space - - - - - Use nbsp; instead space in beginning of line - - - - - Use original font - - - - - Use style tag instead style attribute - - - - - Use 'br' tag instead of '\n' - - - - - Includes line numbers - - - - - Exports colored text as RTF - - At this time only TextStyle renderer is supported. Other styles are not exported. - - - - Includes line numbers - - - - - Use original font - - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Collection of Hints. - This is temporary buffer for currently displayed hints. - - - - - Clears all displayed hints - - - - - Add and shows the hint - - - - - - Is collection contains the hint? - - - - - Count of hints - - - - - Hint of FastColoredTextbox - - - - - Text of simple hint - - - - - Linked range - - - - - Backcolor - - - - - Second backcolor - - - - - Border color - - - - - Fore color - - - - - Text alignment - - - - - Font - - - - - Occurs when user click on simple hint - - - - - Inner control - - - - - Docking (allows None and Fill only) - - - - - Width of hint (if Dock is None) - - - - - Height of hint - - - - - Host panel - - - - - Tag - - - - - Cursor - - - - - Inlining. If True then hint will moves apart text. - - - - - Scroll textbox to the hint - - - - - Creates Hint - - Linked range - Text for simple hint - Inlining. If True then hint will moves apart text - Docking. If True then hint will fill whole line - - - - Creates Hint - - Linked range - Text for simple hint - - - - Creates Hint - - Linked range - Inner control - Inlining. If True then hint will moves apart text - Docking. If True then hint will fill whole line - - - - Creates Hint - - Linked range - Inner control - - - - Returns edited hotkey map - - - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Customize how we display the line numbers - - - - - Defines how line number is displayed - - - - - - - Recover the line number from the formatted string - - - - - - - - This class records, stores and executes the macros. - - - - - Allows to user to record macros - - - - - Returns current recording state. Set to True/False to start/stop recording programmatically. - - - - - FCTB - - - - - Executes recorded macro - - - - - - Adds the char to current macro - - - - - Adds keyboard key to current macro - - - - - Clears last recorded macro - - - - - Returns True if last macro is empty - - - - - Macros as string. - - - - - Dictionary of shortcuts for FCTB - - - - - Actions for shortcuts - - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Highlights syntax for given language - - - - - Highlights syntax for given XML description file - - - - - Uses the given to parse a XML description and adds it as syntax descriptor. - The syntax descriptor is used for highlighting when - - Language property of FCTB is set to - DescriptionFile property of FCTB has the same value as the method parameter - - - Name of the description file - XmlDocument to parse - - - - Adds the given as resilient style. A resilient style is additionally available when highlighting is - based on a syntax descriptor that has been derived from a XML description file. In the run of the highlighting routine - the styles used by the FCTB are always dropped and replaced with the (initial) ones from the syntax descriptor. Resilient styles are - added afterwards and can be used anyway. - - Style to add - - - - Highlights C# code - - - - - - Highlights VB code - - - - - - Highlights HTML code - - - - - - Highlights XML code - - - - - - Highlights SQL code - - - - - - Highlights PHP code - - - - - - Highlights JavaScript code - - - - - - Highlights Lua code - - - - - - Highlights JSON code - - - - - - String style - - - - - Comment style - - - - - Number style - - - - - C# attribute style - - - - - Class name style - - - - - Keyword style - - - - - Style of tags in comments of C# - - - - - HTML attribute value style - - - - - HTML tag brackets style - - - - - HTML tag name style - - - - - HTML Entity style - - - - - XML attribute style - - - - - XML attribute value style - - - - - XML tag brackets style - - - - - XML tag name style - - - - - XML Entity style - - - - - XML CData style - - - - - Variable style - - - - - Specific PHP keyword style - - - - - Specific PHP keyword style - - - - - SQL Statements style - - - - - SQL Functions style - - - - - SQL Types style - - - - - Language - - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Fast colored textbox - - - - - Constructor - - - - - AutoComplete brackets - - - - - Colors of some service visual markers - - - - - Contains UniqueId of start lines of folded blocks - - This dictionary remembers folding state of blocks. - It is needed to restore child folding after user collapsed/expanded top-level folding block. - - - - Strategy of search of brackets to highlighting - - - - - Automatically shifts secondary wordwrap lines on the shift amount of the first line - - - - - Indent of secondary wordwrap lines (in chars) - - - - - MacrosManager records, stores and executes the macroses - - - - - Allows drag and drop - - - - - Collection of Hints. - This is temporary buffer for currently displayed hints. - - You can asynchronously add, remove and clear hints. Appropriate hints will be shown or hidden from the screen. - - - - Delay (ms) of ToolTip - - - - - ToolTip component - - - - - Color of bookmarks - - - - - Bookmarks - - - - - Enables virtual spaces - - - - - Strategy of search of end of folding block - - - - - Indicates if tab characters are accepted as input - - - - - Indicates if return characters are accepted as input - - - - - Shows or hides the caret - - - - - Enables caret blinking - - - - - Draw caret when the control is not focused - - - - - Color of border of text area - - - - - Type of border of text area - - - - - Background color for current line - - - - - Background color for highlighting of changed lines - - - - - Fore color (default style color) - - - - - Height of char in pixels (includes LineInterval) - - - - - Interval between lines (in pixels) - - - - - Width of char in pixels - - - - - Spaces count for tab - - - - - Text was changed - - - - - Text version - - This counter is incremented each time changes the text - - - - Read only - - - - - Shows line numbers. - - - - - Shows vertical lines between folding start line and folding end line. - - - - - Rectangle where located text - - - - - Color of line numbers. - - - - - Start value of first line number. - - - - - To create your own line number formatting, you have to implement the abstract LineNumberFormatting class - - - - - Background color of indent area - - - - - Background color of padding area - - - - - Color of disabled component - - - - - Color of caret - - - - - Wide caret - - - - - Color of service lines (folding lines, borders of blocks etc.) - - - - - Padings of text area - - - - - --Do not use this property-- - - - - - Color of folding area indicator - - - - - Enables folding indicator (left vertical line between folding bounds) - - - - - Left distance to text beginning - - - - - Left padding in pixels - - - - - This property draws vertical line after defined char position. - Set to 0 for disable drawing of vertical line. - - - - - Styles - - - - - Hotkeys. Do not use this property in your code, use HotkeysMapping property. - - - - - Hotkeys mapping - - - - - Default text style - This style is using when no one other TextStyle is not defined in Char.style - - - - - Style for rendering Selection area - - - - - Style for folded block rendering - - - - - Style for brackets highlighting - - - - - Style for alternative brackets highlighting - - - - - Opening bracket for brackets highlighting. - Set to '\x0' for disable brackets highlighting. - - - - - Closing bracket for brackets highlighting. - Set to '\x0' for disable brackets highlighting. - - - - - Alternative opening bracket for brackets highlighting. - Set to '\x0' for disable brackets highlighting. - - - - - Alternative closing bracket for brackets highlighting. - Set to '\x0' for disable brackets highlighting. - - - - - Comment line prefix. - - - - - This property specifies which part of the text will be highlighted as you type (by built-in highlighter). - - When a user enters text, a component refreshes highlighting (because the text was changed). - This property specifies exactly which section of the text will be re-highlighted. - This can be useful to highlight multi-line comments, for example. - - - - Is keyboard in replace mode (wide caret) ? - - - - - Allows text rendering several styles same time. - - - - - Allows to record macros. - - - - - Allows AutoIndent. Inserts spaces before new line. - - - - - Does autoindenting in existing lines. It works only if AutoIndent is True. - - - - - Minimal delay(ms) for delayed events (except TextChangedDelayed). - - - - - Minimal delay(ms) for TextChangedDelayed event. - - - - - Language for highlighting by built-in highlighter. - - - - - Syntax Highlighter - - - - - XML file with description of syntax highlighting. - This property works only with Language == Language.Custom. - - - - - Position of left highlighted bracket. - - - - - Position of right highlighted bracket. - - - - - Position of left highlighted alternative bracket. - - - - - Position of right highlighted alternative bracket. - - - - - Start line index of current highlighted folding area. Return -1 if start of area is not found. - - - - - End line index of current highlighted folding area. Return -1 if end of area is not found. - - - - - TextSource - - - - - The source of the text. - Allows to get text from other FastColoredTextBox. - - - - - Returns current visible range of text - - - - - Current selection range - - - - - Background color. - It is used if BackBrush is null. - - - - - Background brush. - If Null then BackColor is used. - - - - - Multiline - - - - - WordWrap. - - - - - WordWrap mode. - - - - - If true then line breaks included into the selection will be selected too. - Then line breaks will be shown as selected blank character. - - - - - Do not change this property - - - - - Count of lines - - - - - Gets or sets char and styleId for given place - This property does not fire OnTextChanged event - - - - - Gets Line - - - - - Text of control - - - - - Text lines - - - - - Gets colored text as HTML - - For more flexibility you can use ExportToHTML class also - - - - Gets colored text as RTF - - For more flexibility you can use ExportToRTF class also - - - - Text of current selection - - - - - Start position of selection - - - - - Length of selected text - - - - - Font - - Use only monospaced font - - - - Font - - Use only monospaced font - - - - Indicates that IME is allowed (for CJK language entering) - - - - - Is undo enabled? - - - - - Is redo enabled? - - - - - Range of all text - - - - - Color of selected area - - - - - Reserved space for line number characters. - If smaller than needed (e. g. line count >= 10 and this value set to 1) this value will have no impact. - If you want to reserve space, e. g. for line numbers >= 10 or >= 100 than you can set this value to 2 or 3 or higher. - - - - - Occurs when mouse is moving over text and tooltip is needed - - - - - Removes all hints - - - - - Add and shows the hint - - Linked range - Inner control - Scrolls textbox to the hint - Inlining. If True then hint will moves apart text - Docking. If True then hint will fill whole line - - - - Add and shows the hint - - Linked range - Inner control - - - - Add and shows simple text hint - - Linked range - Text of simple hint - Scrolls textbox to the hint - Inlining. If True then hint will moves apart text - Docking. If True then hint will fill whole line - - - - Add and shows simple text hint - - Linked range - Text of simple hint - - - - Occurs when user click on the hint - - - - - - Occurs when VisibleRange is changed - - - - - Invalidates the entire surface of the control and causes the control to be redrawn. - This method is thread safe and does not require Invoke. - - - - - HintClick event. - It occurs if user click on the hint. - - - - - TextChanged event. - It occurs after insert, delete, clear, undo and redo operations. - - - - - Fake event for correct data binding - - - - - Occurs when user paste text from clipboard - - - - - TextChanging event. - It occurs before insert, delete, clear, undo and redo operations. - - - - - SelectionChanged event. - It occurs after changing of selection. - - - - - VisibleRangeChanged event. - It occurs after changing of visible range. - - - - - TextChangedDelayed event. - It occurs after insert, delete, clear, undo and redo operations. - This event occurs with a delay relative to TextChanged, and fires only once. - - - - - SelectionChangedDelayed event. - It occurs after changing of selection. - This event occurs with a delay relative to SelectionChanged, and fires only once. - - - - - VisibleRangeChangedDelayed event. - It occurs after changing of visible range. - This event occurs with a delay relative to VisibleRangeChanged, and fires only once. - - - - - It occurs when user click on VisualMarker. - - - - - It occurs when visible char is enetering (alphabetic, digit, punctuation, DEL, BACKSPACE) - - Set Handle to True for cancel key - - - - It occurs when visible char is enetered (alphabetic, digit, punctuation, DEL, BACKSPACE) - - - - - It occurs when calculates AutoIndent for new line - - - - - It occurs when line background is painting - - - - - Occurs when line was inserted/added - - - - - Occurs when line was removed - - - - - Occurs when current highlighted folding area is changed. - Current folding area see in StartFoldingLine and EndFoldingLine. - - - - - - Occurs when undo/redo stack is changed - - - - - - Occurs when component was zoomed - - - - - Occurs when user pressed key, that specified as CustomAction - - - - - Occurs when scroolbars are updated - - - - - Occurs when custom wordwrap is needed - - - - - Returns list of styles of given place - - - - - Call this method if the recalc of the position of lines is needed. - - - - - Call this method if the recalc of the position of lines is needed. - - - - - Call this method if the recalc of the position of lines is needed. - - - - - Navigates forward (by Line.LastVisit property) - - - - - Navigates backward (by Line.LastVisit property) - - - - - Navigates to defined line, without Line.LastVisit reseting - - - - - Add new style - - Layer index of this style - - - - Checks if the styles buffer has enough space to add one - more element. If not, an exception is thrown. Otherwise, - the index of a free slot is returned. - - Index of free styles buffer slot - If maximum count of styles is exceeded - - - - Shows find dialog - - - - - Shows find dialog - - - - - Shows replace dialog - - - - - Shows replace dialog - - - - - Gets length of given line - - Line index - Length of line - - - - Get range of line - - Line index - - - - Copy selected text into Clipboard - - - - - Cut selected text into Clipboard - - - - - Paste text from clipboard into selected position - - - - - Select all chars of text - - - - - Move caret to end of text - - - - - Move caret to first position - - - - - Clear text, styles, history, caches - - - - - Clear buffer of styles - - - - - Clear style of all text - - - - - Clears undo and redo stacks - - - - - Insert text into current selected position - - - - - Insert text into current selected position - - - - - - Insert text into current selection position (with predefined style) - - - - - - Insert text into current selection position (with predefined style) - - - - - Insert text into replaceRange and restore previous selection - - - - - Append string to end of the Text - - - - - Append string to end of the Text - - - - - Returns index of the style in Styles - -1 otherwise - - - Index of the style in Styles - - - - Returns StyleIndex mask of given styles - - - StyleIndex mask of given styles - - - - Deletes selected chars - - - - - Deletes current line(s) - - - - - Calculates wordwrap cutoffs - - - - - Scroll control for display defined rectangle - - - - - - Updates scrollbar position after Value changed - - - - - Scroll control for display caret - - - - - Scroll control left - - - - - Scroll control for display selection area - - - - - Scroll control for display given range - - - - - Scroll control for display given range - - - - - Process control keys - - - - - Scrolls to nearest bookmark or to first bookmark - - Current bookmark line index - - - - Scrolls to nearest previous bookmark or to last bookmark - - Current bookmark line index - - - - Bookmarks line - - - - - Unbookmarks current line - - - - - Moves selected lines down - - - - - Moves selected lines up - - - - - Convert selected text to upper case - - - - - Convert selected text to lower case - - - - - Convert selected text to title case - - - - - Convert selected text to sentence case - - - - - Insert/remove comment prefix into selected lines - - - - - Insert/remove comment prefix into selected lines - - - - - Process "real" keys (no control) - - - - - Enables AutoIndentChars mode - - - - - Regex patterns for AutoIndentChars (one regex per line) - - - - - Do AutoIndentChars - - - - - Finds given char after current caret position, moves the caret to found pos. - - - - - - Inserts autoindent's spaces in the line - - - - - Returns needed start space count for the line - - - - - Undo last operation - - - - - Redo - - - - - Draws text to given Graphics - - - Start place of drawing text - Size of drawing - - - - Draw control - - - - - Gets the value for the system control panel mouse wheel scroll settings. - The value returns the number of lines that shall be scolled if the user turns the mouse wheet one step. - - - This methods gets the "WheelScrollLines" value our from the registry key "HKEY_CURRENT_USER\Control Panel\Desktop". - If the value of this option is 0, the screen will not scroll when the mouse wheel is turned. - If the value of this option is -1 or is greater than the number of lines visible in the window, - the screen will scroll up or down by one page. - - - Number of lines to scrol l when the mouse wheel is turned - - - - - Zooming (in percentages) - - - - - Gets nearest line and char position from coordinates - - Point - Line and char position - - - - Gets nearest absolute text position for given point - - Point - Position - - - - Fires TextChanging event - - - - - Fires TextChanged event - - - - - Fires TextChanged event - - - - - Fires TextChanged event - - - - - Call this method before multiple text changing - - - - - Call this method after multiple text changing - - - - - Fires TextChanged event - - - - - Clears folding state for range of text - - - - - Fires SelectionChanged event - - - - - Gets absolute text position from line and char position - - Line and char position - Point of char - - - - Gets line and char position from absolute text position - - - - - Gets absolute char position from char position - - - - - Gets point for given line and char position - - Line and char position - Coordiantes - - - - Get range of text - - Absolute start position - Absolute finish position - Range - - - - Get range of text - - Line and char position - Line and char position - Range - - - - Finds ranges for given regex pattern - - Regex pattern - Enumeration of ranges - - - - Finds ranges for given regex pattern - - Regex pattern - Enumeration of ranges - - - - Get text of given line - - Line index - Text - - - - Exapnds folded block - - Start line - - - - Collapse folding blocks using FoldedBlocks dictionary. - - - - - Expand collapsed block - - - - - Expand collapsed block - - Any line inside collapsed block - - - - Collapses all folding blocks - - - - - Exapnds all folded blocks - - - - - - Collapses folding block - - Start folding line - - - - Start foilding marker for the line - - - - - End foilding marker for the line - - - - - Collapse text block - - - - - Insert TAB into front of seletcted lines. - - - - - Remove TAB from front of seletcted lines. - - - - - Remove TAB in front of the caret ot the selected line. - - - - - Insert autoindents into selected lines - - - - - Insert prefix into front of seletcted lines - - - - - Remove prefix from front of selected lines - This method ignores forward spaces of the line - - - - - Begins AutoUndo block. - All changes of text between BeginAutoUndo() and EndAutoUndo() will be canceled in one operation Undo. - - - - - Ends AutoUndo block. - All changes of text between BeginAutoUndo() and EndAutoUndo() will be canceled in one operation Undo. - - - - - Highlights brackets around caret - - - - - Returns range between brackets (or null if not found) - - - - - Selectes next fragment for given regex. - - - - - Prints range of text - - - - - Prints all text - - - - - Prints all text, without any dialog windows - - - - - Open text file - - - - - Open text file (with automatic encoding detector) - - - - - Open file binding mode - - - - - - - Close file binding mode - - - - - Save text to the file - - - - - - - Set VisibleState of line - - - - - Returns VisibleState of the line - - - - - Shows Goto dialog form - - - - - Set current line number and make it visible - - - - - - Occurs when undo/redo stack is changed - - - - - Search lines by regex pattern - - - - - Removes given lines - - - - - Activates the scrolling mode (middle click button). - - MouseEventArgs - - - - Deactivates the scrolling mode (middle click button). - - - - - Restore scrolls - - - - - Inserted line index - - - - - Count of inserted lines - - - - - Removed line index - - - - - Count of removed lines - - - - - UniqueIds of removed lines - - - - - TextChanged event argument - - - - - Constructor - - - - - This range contains changed area of text - - - - - Set to true if you want to cancel text inserting - - - - - Word wrapping by control width - - - - - Word wrapping by preferred line width (PreferredLineWidth) - - - - - Char wrapping by control width - - - - - Char wrapping by preferred line width (PreferredLineWidth) - - - - - Custom wrap (by event WordWrapNeeded) - - - - - Title of page. If you want to print Title on the page, insert code &w in Footer or Header. - - - - - Footer of page. - Here you can use special codes: &w (Window title), &D, &d (Date), &t(), &4 (Time), &p (Current page number), &P (Total number of pages), && (A single ampersand), &b (Right justify text, Center text. If &b occurs once, then anything after the &b is right justified. If &b occurs twice, then anything between the two &b is centered, and anything after the second &b is right justified). - More detailed see here - - - - - Header of page - Here you can use special codes: &w (Window title), &D, &d (Date), &t(), &4 (Time), &p (Current page number), &P (Total number of pages), && (A single ampersand), &b (Right justify text, Center text. If &b occurs once, then anything after the &b is right justified. If &b occurs twice, then anything between the two &b is centered, and anything after the second &b is right justified). - More detailed see here - - - - - Prints line numbers - - - - - Additional spaces count for this line, relative to previous line - - - - - Additional spaces count for next line, relative to previous line - - - - - Absolute indentation of current line. You can change this property if you want to set absolute indentation. - - - - - Type of highlighting - - - - - Highlight only changed range of text. Highest performance. - - - - - Highlight visible range of text. Middle performance. - - - - - Highlight all (visible and invisible) text. Lowest performance. - - - - - Strategy of search of end of folding block - - - - - Strategy of search of brackets to highlighting - - - - - ToolTipNeeded event args - - - - - HintClick event args - - - - - CustomAction event args - - - - - Style index mask (16 styles) - - - - - Insert single char - - This operation includes also insertion of new line and removing char by backspace - - - - Constructor - - Underlaying textbox - Inserting char - - - - Undo operation - - - - - Execute operation - - - - - Merge lines i and i+1 - - - - - Insert text - - - - - Constructor - - Underlaying textbox - Text for inserting - - - - Undo operation - - - - - Execute operation - - - - - Insert text into given ranges - - - - - Constructor - - Underlaying textbox - List of ranges for replace - Text for inserting - - - - Undo operation - - - - - Execute operation - - - - - Clear selected text - - - - - Construstor - - Underlaying textbox - - - - Undo operation - - - - - Execute operation - - - - - Replaces text - - - - - Constructor - - Underlaying textsource - List of ranges for replace - - - - Undo operation - - - - - Execute operation - - - - - Removes lines - - - - - Constructor - - Underlaying textbox - List of ranges for replace - Text for inserting - - - - Undo operation - - - - - Execute operation - - - - - Wrapper for multirange commands - - - - - Remembers current selection and restore it after Undo - - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Limited stack - - - - - Max stack length - - - - - Current length of stack - - - - - Constructor - - Maximum length of stack - - - - Pop item - - - - - Peek item - - - - - Push item - - - - - Clear stack - - - - - Line of text - - - - - Text of line was changed - - - - - Time of last visit of caret in this line - - This property can be used for forward/backward navigating - - - - Background brush. - - - - - Unique ID - - - - - Count of needed start spaces for AutoIndent - - - - - Clears style of chars, delete folding markers - - - - - Text of the line - - - - - Clears folding markers - - - - - Count of start spaces - - - - - Chars count - - - - - Visible state - - - - - Positions for wordwrap cutoffs - - - - - Count of wordwrap string count for this line - - - - - Gets index of wordwrap string for given char position - - - - - Line index and char index - - - - - Diapason of text chars - - - - - Constructor - - - - - Return true if no selected text - - - - - Column selection mode - - - - - Constructor - - - - - Constructor - - - - - Constructor. Creates range of the line - - - - - Returns intersection with other range, - empty range returned otherwise - - - - - - - Returns union with other range. - - - - - - - Select all chars of control - - - - - Start line and char position - - - - - Finish line and char position - - - - - Text of range - - This property has not 'set' accessor because undo/redo stack works only with - FastColoredTextBox.Selection range. So, if you want to set text, you need to use FastColoredTextBox.Selection - and FastColoredTextBox.InsertText() mehtod. - - - - - Returns first char after Start place - - - - - Returns first char before Start place - - - - - Returns required char's number before start of the Range - - - - - Returns required char's number after start of the Range - - - - - Clone range - - - - - - Return minimum of end.X and start.X - - - - - Return maximum of end.X and start.X - - - - - Move range right - - This method jump over folded blocks - - - - Move range left - - This method can to go inside folded blocks - - - - Move range left - - This method jump over folded blocks - - - - Move range left - - This method can to go inside folded blocks - - - - Set style for range - - - - - Set style for given regex pattern - - - - - Set style for given regex - - - - - Set style for given regex pattern - - - - - Set style for given regex pattern - - - - - Set style for given regex pattern - - - - - Appends style to chars of range - - - - - Sets folding markers - - Pattern for start folding line - Pattern for finish folding line - - - - Sets folding markers - - Pattern for start folding line - Pattern for finish folding line - - - - Sets folding markers - - Pattern for start and end folding line - - - - Finds ranges for given regex pattern - - Regex pattern - Enumeration of ranges - - - - Finds ranges for given regex pattern - - Regex pattern - Enumeration of ranges - - - - Finds ranges for given regex pattern. - Search is separately in each line. - This method requires less memory than GetRanges(). - - Regex pattern - Enumeration of ranges - - - - Finds ranges for given regex. - Search is separately in each line. - This method requires less memory than GetRanges(). - - Regex - Enumeration of ranges - - - - Finds ranges for given regex pattern. - Search is separately in each line (order of lines is reversed). - This method requires less memory than GetRanges(). - - Regex pattern - Enumeration of ranges - - - - Finds ranges for given regex - - Enumeration of ranges - - - - Clear styles of range - - - - - Clear styles of range - - - - - Clear folding markers of all lines of range - - - - - Starts selection position updating - - - - - Ends selection position updating - - - - - Exchanges Start and End if End appears before Start - - - - - Exchanges Start and End - - - - - Expands range from first char of Start line to last char of End line - - - - - Chars of range (exclude \n) - - - - - Get fragment of text around Start place. Returns maximal matched to pattern fragment. - - Allowed chars pattern for fragment - Range of found fragment - - - - Get fragment of text around Start place. Returns maximal matched to given Style. - - Allowed style for fragment - Range of found fragment - - - - Get fragment of text around Start place. Returns maximal mathed to pattern fragment. - - Allowed chars pattern for fragment - Range of found fragment - - - - Range is readonly? - This property return True if any char of the range contains ReadOnlyStyle. - Set this property to True/False to mark chars of the range as Readonly/Writable. - - - - - Is char before range readonly - - - - - - Is char after range readonly - - - - - - Style of chars - - This is base class for all text and design renderers - - - - This style is exported to outer formats (HTML for example) - - - - - Occurs when user click on StyleVisualMarker joined to this style - - - - - Constructor - - - - - Renders given range of text - - Graphics object - Position of the range in absolute control coordinates - Rendering range of text - - - - Occurs when user click on StyleVisualMarker joined to this style - - - - - Shows VisualMarker - Call this method in Draw method, when you need to show VisualMarker for your style - - - - - Returns CSS for export to HTML - - - - - - Returns RTF descriptor for export to RTF - - - - - - Style for chars rendering - This renderer can draws chars, with defined fore and back colors - - - - - Renderer for folded block - - - - - Renderer for selected area - - - - - Marker style - Draws background color for text - - - - - Draws small rectangle for popup menu - - - - - This style draws a wavy line below a given text range. - - Thanks for Yallie - - - - This style is used to mark range of text as ReadOnly block - - You can inherite this style to add visual effects of readonly text - - - - This class contains the source text (chars and styles). - It stores a text lines, the manager of commands, undo/redo stack, styles. - - - - - Styles - - - - - Occurs when line was inserted/added - - - - - Occurs when line was removed - - - - - Occurs when text was changed - - - - - Occurs when recalc is needed - - - - - Occurs when recalc wordwrap is needed - - - - - Occurs before text changing - - - - - Occurs after CurrentTB was changed - - - - - Current focused FastColoredTextBox - - - - - Default text style - This style is using when no one other TextStyle is not defined in Char.style - - - - - Text lines - - - - - Lines count - - - - - These classes are required for correct data binding to Text property of FastColoredTextbox - - - - - This class contains the source text (chars and styles). - It stores a text lines, the manager of commands, undo/redo stack, styles. - - - - - Occurs when need to display line in the textbox - - - - - Occurs when need to save line in the file - - - - - End Of Line characters used for saving - - - - - This text will be displayed in textbox - - - - - This property contains only changed text. - If text of line is not changed, this property contains null. - - - - - This text will be saved in the file - - - - diff --git a/Binary/TabStrip.dll b/Binary/TabStrip.dll deleted file mode 100644 index 5e2b2c70..00000000 Binary files a/Binary/TabStrip.dll and /dev/null differ diff --git a/Binary/Tester.exe b/Binary/Tester.exe deleted file mode 100644 index b086b8be..00000000 Binary files a/Binary/Tester.exe and /dev/null differ diff --git a/Binary/htmlDesc.xml b/Binary/htmlDesc.xml deleted file mode 100644 index 76a1e178..00000000 --- a/Binary/htmlDesc.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - "; - - /// - /// Use nbsp; instead space - /// - public bool UseNbsp { get; set; } - /// - /// Use nbsp; instead space in beginning of line - /// - public bool UseForwardNbsp { get; set; } - /// - /// Use original font - /// - public bool UseOriginalFont { get; set; } - /// - /// Use style tag instead style attribute - /// - public bool UseStyleTag { get; set; } - /// - /// Use 'br' tag instead of '\n' - /// - public bool UseBr { get; set; } - /// - /// Includes line numbers - /// - public bool IncludeLineNumbers { get; set; } - - FastColoredTextBox tb; - - public ExportToHTML() - { - UseNbsp = true; - UseOriginalFont = true; - UseStyleTag = true; - UseBr = true; - } - - public string GetHtml(FastColoredTextBox tb) - { - this.tb = tb; - Range sel = new Range(tb); - sel.SelectAll(); - return GetHtml(sel); - } - - public string GetHtml(Range r) - { - this.tb = r.tb; - Dictionary styles = new Dictionary(); - StringBuilder sb = new StringBuilder(); - StringBuilder tempSB = new StringBuilder(); - StyleIndex currentStyleId = StyleIndex.None; - r.Normalize(); - int currentLine = r.Start.iLine; - styles[currentStyleId] = null; - // - if (UseOriginalFont) - sb.AppendFormat("", - r.tb.Font.Name, r.tb.Font.SizeInPoints, r.tb.CharHeight); - - // - if (IncludeLineNumbers) - tempSB.AppendFormat("{0} ", currentLine + 1); - // - bool hasNonSpace = false; - foreach (Place p in r) - { - Char c = r.tb[p.iLine][p.iChar]; - if (c.style != currentStyleId) - { - Flush(sb, tempSB, currentStyleId); - currentStyleId = c.style; - styles[currentStyleId] = null; - } - - if (p.iLine != currentLine) - { - for (int i = currentLine; i < p.iLine; i++) - { - tempSB.Append(UseBr ? "
" : "\r\n"); - if (IncludeLineNumbers) - tempSB.AppendFormat("{0} ", i + 2); - } - currentLine = p.iLine; - hasNonSpace = false; - } - switch (c.c) - { - case ' ': - if ((hasNonSpace || !UseForwardNbsp) && !UseNbsp) - goto default; - - tempSB.Append(" "); - break; - case '<': - tempSB.Append("<"); - break; - case '>': - tempSB.Append(">"); - break; - case '&': - tempSB.Append("&"); - break; - default: - hasNonSpace = true; - tempSB.Append(c.c); - break; - } - } - Flush(sb, tempSB, currentStyleId); - - if (UseOriginalFont) - sb.Append("
"); - - //build styles - if (UseStyleTag) - { - tempSB.Length = 0; - tempSB.Append(""); - - sb.Insert(0, tempSB.ToString()); - } - - if (IncludeLineNumbers) - sb.Insert(0, LineNumbersCSS); - - return sb.ToString(); - } - - private string GetCss(StyleIndex styleIndex) - { - List"; + + /// + /// Use nbsp; instead space + /// + public bool UseNbsp { get; set; } + /// + /// Use nbsp; instead space in beginning of line + /// + public bool UseForwardNbsp { get; set; } + /// + /// Use original font + /// + public bool UseOriginalFont { get; set; } + /// + /// Use style tag instead style attribute + /// + public bool UseStyleTag { get; set; } + /// + /// Use 'br' tag instead of '\n' + /// + public bool UseBr { get; set; } + /// + /// Includes line numbers + /// + public bool IncludeLineNumbers { get; set; } + + FastColoredTextBox tb; + + public ExportToHTML() + { + UseNbsp = true; + UseOriginalFont = true; + UseStyleTag = true; + UseBr = true; + } + + public string GetHtml(FastColoredTextBox tb) + { + this.tb = tb; + Range sel = new Range(tb); + sel.SelectAll(); + return GetHtml(sel); + } + + public string GetHtml(Range r) + { + this.tb = r.tb; + Dictionary styles = new Dictionary(); + StringBuilder sb = new StringBuilder(); + StringBuilder tempSB = new StringBuilder(); + StyleIndex currentStyleId = StyleIndex.None; + r.Normalize(); + int currentLine = r.Start.iLine; + styles[currentStyleId] = null; + // + if (UseOriginalFont) + sb.AppendFormat("", + r.tb.Font.Name, r.tb.Font.SizeInPoints, r.tb.CharHeight); + + // + if (IncludeLineNumbers) + tempSB.AppendFormat("{0} ", currentLine + 1); + // + bool hasNonSpace = false; + foreach (Place p in r) + { + Char c = r.tb[p.iLine][p.iChar]; + if (c.style != currentStyleId) + { + Flush(sb, tempSB, currentStyleId); + currentStyleId = c.style; + styles[currentStyleId] = null; + } + + if (p.iLine != currentLine) + { + for (int i = currentLine; i < p.iLine; i++) + { + tempSB.Append(UseBr ? "
" : "\r\n"); + if (IncludeLineNumbers) + tempSB.AppendFormat("{0} ", i + 2); + } + currentLine = p.iLine; + hasNonSpace = false; + } + switch (c.c) + { + case ' ': + if ((hasNonSpace || !UseForwardNbsp) && !UseNbsp) + goto default; + + tempSB.Append(" "); + break; + case '<': + tempSB.Append("<"); + break; + case '>': + tempSB.Append(">"); + break; + case '&': + tempSB.Append("&"); + break; + default: + hasNonSpace = true; + tempSB.Append(c.c); + break; + } + } + Flush(sb, tempSB, currentStyleId); + + if (UseOriginalFont) + sb.Append("
"); + + //build styles + if (UseStyleTag) + { + tempSB.Length = 0; + tempSB.Append(""); + + sb.Insert(0, tempSB.ToString()); + } + + if (IncludeLineNumbers) + sb.Insert(0, LineNumbersCSS); + + return sb.ToString(); + } + + private string GetCss(StyleIndex styleIndex) + { + List