View unanswered posts | View active topics


Reply to topic  [ 3 posts ] 
Argument processing in FlashDevelop 
Author Message
Admin

Joined: Tue Aug 30, 2005 6:14 pm
Posts: 1758
Location: Helsinki, Finland
Post Argument processing in FlashDevelop
FlashDevelop processes strings in some cases for system, plugin and user defined arguments. This functionality provides dynamic content to be used in resolving paths and custom strings. Currently arguments are processed in the snippets and the menu item's tag attribute (MainMenu.xml).

FD defines following arguments:

@APPDIR - Directory where FlashDevelop is installed
@SELTEXT - Currently selected text in FlashDevelop editor window
@QUOTE - Quote (") to be used in places that dont allow normal quote usage
@CLIPBOARD - Clipboard text
@CURFILENAME - Name of the currently edited file
@CURFILE - Full path with file name of the currently edited file
@CURDIR - Path of the currently edited file
@TIMESTAMP - System specified timestamp
@CURWORD - Current word specified by caret position
@SELFILE - User selected file (with openFileDialog)
@TRGFILE - User selected file (with saveFileDialog)
@SELDIR - User selected directory (with browseFolderDialog)
@DESKTOP - System specified desktop directory
@SYSTEM - System specified system directory
@PROGDIR - System specified programs directory
@PERSONAL - System specified personal files directory
@WORKINGDIR - Current working directory

After these arguments have been processed, the processor will look for user defined arguments (defined in Settings.xml):
FlashDevelop.UserDefined.@SAMPLEARG

After the user defined arguments have been processed FD sends a notify to all plugins to process the text.


Tue Jan 10, 2006 11:25 am
Profile E-mail WWW
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 7507
Location: Paris, France
Post 
ASCompletion defines other contextual arguments:

See Actionscript Context Help


Tue May 16, 2006 6:49 am
Profile WWW
Admin

Joined: Thu Sep 01, 2005 4:34 pm
Posts: 240
Location: Portland, OR
Post 
ProjectExplorer defines other contextual arguments:

Any macro from the project properties' "Build Event" builder dialog can be used here as well. Just make the var uppercase, for instance:

$(ProjectName) becomes @PROJECTNAME


Wed May 24, 2006 1:17 am
Profile E-mail WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.