<< New in PIEdit 2.40 [78/117] >>

New in PIEdit 2.40


Home / Projects / PIEdit / New in PIEdit 2.40

New in PIEdit 2.40



Due to a multiplicity of larger (structural) changes I decided to a version jump from 2.31 to 2.40. PIEdit is now in the appearance freely configurable, still more faster, notes GUI characteristics, has a HTML source text browser and possesses now a complete, still freely configurable, syntax highlighting.
Most important innovations since version 2.31 PIEdit_ AppearanceConfigurable GUI The appearance of PIEdit can be configured now completely. One can remove arbitrary menu entries and buttons from the announcement. These attitudes are in the menu "Window/Appearance". There the configurable elements are visualized in a tree and one will be able, through mouse-click on entries, to remove or insert them. The color black meant visible, light-grey indicate: not visible.
The option "SmartVis" has when activated (standard attitude) as a consequence that the toolbars Style (down) and Pattern (right) are indicated only if one loads/regard a file , which supports also different styles (RTF and twin mode files).
In the course of this change the script command "TOOLBAR" was removed.

Improvements in performance
The start of PIEdit could be increased by strong restructuring of the program code again by approx. 40%. Thus classes now are only then instanciated when they are needed. Thus PIEdit (direct after boot) starts within approx. 5000ms and when further starting in 1900ms.
If one deactivates all menu entries and buttons (view mode of files) PIEdit starts in approx. 1350ms. Configures one the GUI with the most common functions (file actions, undo/redo, clip-board) PIEdit starts still in approx. 1500ms.
In principle applies: The fewer menus and buttons to be indicated, the faster the program start. Because the components removed by the GUI configuration are not placed simply on "not visibly", but does not generate only.
The deactivation of the SplashScreen has only insignificant influence on the performance, since the Java interpreter stresses a certain time for the first initialization of a GUI window and loads the following opened windows very fast.
Reference for these velocity values is Computer (AMD Athlon 1GHz).
Advanced JTabbedPaneOperation
The individual tabs (JTabbedPane) can be scaled over a maximization function (magnifying glass) on the complete window. This goes also with the search in files tabs.
Status storage The status of the PIEdit window is stored now when leaving. Thus the following is noted:

- Position and size of the window
- Visibility of menu entries and the buttons
- Position of the separation bar (JSplitPane: Divider) between the file tabs and the search in file tabs 
- Styles of the Pattern toolbar
- Colors of the color buttons of the Style toolbar   With the next start of PIEdit thus, e.g., the window at the same position is represented.
Config.rtf, which so far for these attitudes was used, becomes thus redundant. 
Source text browser (internet+filePIEdit_ Clipboard ToolbarOver a additional button in the Clipboard toolbar it is possible to download a URL to a HTTP side (and/or path+filename) in the clip-board directly in PIEdit. The syntax type (HTML, CSS, JS) thereby is recognized and the appropriate syntax highlighting is used.  
PIEdit_ File ToolbarThe moreover there is a second open button in the file toolbar, who tries to indicate the file/URL in the selected text.
During selecting a relative file/URL (e.g. "../main.css") the path of the current file (in that the text was selected) preceding and tries these to load. That means thus: If one e.g. loads "http://www.google.de" and if "index.html" selects in the source text, then tried to load "http://www.google.de/index.html". Thus one can efficiently browse through the source text of different internet sides.

PIEdit syntax HighlightingSyntax-Highlighting
The Syntax-Highlighting supports now also embedded programs, which means that e.g. CSS style definitions, Javascript programs and Java programs in HTML files becomes syntax highlighted. Thus the syntax highlighting could be extended among other things effectively on JSP sides (JavaServerPages).
Important remarks: With larger files it becomes possibly necessary that one increases the stack size for the program by means of Java start parameter -Xss. This becomes among other things necessary if in the text of a loaded file lines exists, which are longer than approx. 1024 bytes. In this case it can give a stack overflow error during the syntax highlighting. This becomes apparent among other things through the fact that the complete file does not becomes syntax highlighted. A stack size of 512KB (thus - Xss512k) proved in the test as sufficient.
Unfortunately the stack size attitude has apparent still no influence when starting PIEdit with a large file. PIEdit remains hanging then when starting. After my searches there is no possibility of intercepting the stack overflow error program-technically. Therefore large files should be loaded only then if PIEdit already runs (thus e.g. by open button).

All changes in the short format
Since it gave still smaller other changes, these are only pass-pointlike enumerated:
Version 2.40
- Configurable GUI
- About window
- Improvements in performance
- Operation (maximization, locking and shift function for tabs
- Status storage of the window (menu + buttons
- Java style button images used
- Internet source text browser functionality
- Search in files runs now in a thread, which can be broken off
- small manual tooltips for the Color-&Pattern-toolbar
- Embedded syntax highlighting
- Syntax highlighting for JSP sides
- small revisions of the highlight file
- Caret jumps when Undo/Redo to the point of change

Visitors PageClicks Valid XHTML 1.0! Valid CSS!

CanciAbout meSite-MapRightsContactJSWins (JavaScript-Desktop-System)© 2004-2013 by Markus Krebs