среда, 28 марта 2012 г.

SyntaxHighlighter в и для Blogger

Данная статья поможет Вам реализовать в блоге на Blogger подсветку синтаксиса с помощью Java скрипта SyntaxHighlighter. Вот ссылка на сайт, где Вы сможете с ним ознакомиться: http://alexgorbatchev.com/SyntaxHighlighter/

И так для начала давайте определимся со списком поддерживаемых языков, которые у Вас в блоге должны отображаться с подсветкой, в SyntaxHighlighter они называются Brushes (кисти), вот ссылка на перечень кистей: http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/

Определились, поехали дальше, мой список кистей:
- С++ - shBrushCpp.js
- Delphi - shBrushDelphi.js
- SQL - shBrushSql.js
- XML - shBrushXml.js

понедельник, 19 марта 2012 г.

TParser в Delphi

Если Вы не знакомы с блоком try – finally то прочитайте эту статью: http://www.delphisources.ru/pages/faq/faq_delphi_basics/Try.php.html
TParser позволяет обрабатывать DFM файлы (.dfm - расширение), используется RAD Studio для их анализа.
Embarcadero о TParser:
http://docwiki.embarcadero.com/Libraries/en/System.Classes.TParser
Данный класс находиться в модуле Classes, вот его описание:

понедельник, 5 марта 2012 г.

About TGLBaseSceneObject from source code

TGLBaseSceneObject = class(TGLCoordinatesUpdateAbleComponent)
Base class for all scene objects. A scene object is part of scene hierarchy (each scene object can have multiple children), this hierarchy primarily defines transformations (each child coordinates are relative to its parent), but is also used for depth-sorting, bounding and visibility culling purposes. Subclasses implement either visual scene objects (that are made to be visible at runtime, like a Cube) or structural objects (that influence rendering or are used for varied structural manipulations, like the ProxyObject). To add children at runtime, use the AddNewChild method of TGLBaseSceneObject; other children manipulations methods and properties are provided (to browse, move and delete them). Using the regular TComponent methods is not encouraged.

About TGLCamera from source code

TGLCamera = class(TGLBaseSceneObject)
  property NearPlane: Single read FnearPlane;
  property DepthOfView: Single read FDepthOfView write SetDepthOfView;
  property FocalLength: Single read FFocalLength write SetFocalLength;
  property SceneScale: Single read FSceneScale write SetSceneScale;
  property NearPlaneBias: Single read FNearPlaneBias write SetNearPlaneBias;
  property TargetObject: TGLBaseSceneObject read FTargetObject write SetTargetObject;
  property CameraStyle: TGLCameraStyle read FCameraStyle write SetCameraStyle;
  property KeepFOVMode: TGLCameraKeepFOVMode read FkeepFOVMode write SetKeepFOVMode;
  procedure ZoomAll(aSceneBuffer: TGLSceneBuffer);