jEdit Community - Resources for users of the jEdit Text Editor
Console Plugin: Getting Commando files to save variables from last use
Submitted by JuliusB on Wednesday, 11 August, 2004 - 15:16
I'm tring to make a commando file for compiling individual C/C++ files.

It should take in as arguments: which compiler to use, Include switches, Lib switches and other compiler switches.

Is it somehow possible to save these variables so that you don't need to write them every time?

On a side note: Is it possible to make the Eval attribute excute an arbitrary beanshell script?

Thanks In Advance,
Julius

Btw, JEdit Rocks!!!! Smiling
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Storing data for macros
by DanF on Thu, 12/08/2004 - 19:34
For macros I think you can use jEdit.setProperty(String, String) or jEdit.setTemporaryProperty(String, String). Don't know about commando's though. Sad

DanF
 
Storing data for commando files
by Anonymous on Fri, 15/10/2004 - 00:06
I see how this might work for saving properties, but how would you load them ?

Robert M
 
Reading properties from commando scripts.
by Anonymous on Sun, 17/10/2004 - 22:31
The magic line is to read property, note the use of '' so that the " quotes are correctly escaped. and if (makeOptions.length() > 0) { buf.append(" "+makeOptions); jEdit.setProperty("makeOptions",makeOptions.toString()); } to save it. Robert M
 
The magic line is ENTRY L
by Anonymous on Sun, 17/10/2004 - 22:34
The magic line is

ENTRY LABEL="Make Options" VARNAME="makeOptions" EVAL = 'jEdit.getProperty("makeOptions","");'

I don't know why it didn't show up in the last comment.
User login
Browse archives
« April 2025  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   107800
Context Free Art (*.cfdg)   0.31   46069
BBEdit scheme   1.0   18605
JBuilder scheme   .001   18506
ColdFusion scheme   1.0   18039
R Edit Mode - extensive version   0.1   17486
Advanced HTML edit mode   1.0   16220
Matlab Edit Mode   1.0   16084
jEdit XP icons   1.0   15243
XP icons for jEdit   1.1   14307