Saving & Editing Read-Only Files
Submitted by
drperrier on
Sunday, 4 November, 2007 - 18:58
I want to edit and then save a read-only file and I can't seem to do this. The "Read Only" macro built in only seems to work one-way and trying beanshell and entering buffer.setReadOnly(false) doesn't work either. Trying the search here at the community only turned up hits for people trying to make files read-only.
Is there a simple way to edit and then save read-only files in JEdit? Textmate and even Smultron will let me edit read-only files and then save them by authenticating myself as the root user inside the program. I'd like to stick with JEdit.
I'm running JEdit 4.3pre11 on Mac OS 10.4.9 and am dealing with a ruby directory I created as the root user in a unix window.
Thanks
Selecting/Excluding lines of text
Submitted by
jurrie on
Friday, 2 November, 2007 - 16:59
When analyzing log files it can be handy to run with split views with each view being restricted to a particular subset of lines from the file in question. I'm trying to do something like this with jEdit and am looking for some guidance to steer me in the right direction. A search of the User's Guide and this forum didn't yield any obvious answers, possibly due to my use of inaccurate search terminology. Here goes:
1. how can I display only lines which match a certain search string (or pattern) ?
i.e. Show only lines with contain the string "MyLogEntry:"
2. how can I restrict the display content to only those lines which do not meet some exclusion content?
Ideally I'd be able to add and remove display filter restrictions dynamically.
i.e. Only show lines which do not contain the string "ComponentA:" nor the string "ComponentD:" nor the string "ComponentZ:"
In both of these cases I'd like to maintain the buffer's gutter and the ability display the original line numbers.
Is there a standard jEdit means of doing this?
Any guidance would be appreciated.
C# question???
Submitted by
jimmygyuma on
Wednesday, 24 October, 2007 - 18:10
I know, I know, this is a jEdit forum. But I have gotten no help from MSDN C# forum or CodeGuru C#.
I use jEdit to edit the pages on my website. I am in the process of putting up the pages of a logbook. I have written a program in C# to help me write those pages; basically I fill in a lot of blanks and the program writes and saves the .html page. I have a button to open the page in IE to see if it looks alright, and I have another button which is supposed to open the file in jEdit for editing. It is this button that is giving me problems.
It opens the file in a new instance of jEdit, instead of in the running instance of jEdit. Well, actually it opens the file in both the running instance and the new instance. And the new instance has all the same files open as the running instance. Dopey.
I don't want to open a new instance of jEdit, I want the file to open in the already running instance.
If anyone has any experience with C# or the .NET framework and can tell me how to do this, I would be very grateful.
I guess I should have written the thing as a jEdit plugin to begin with, but that would have required learning how to write a plugin and relearning Java.
Thanks,
Jim
newbie
Submitted by
am33n on
Sunday, 21 October, 2007 - 10:17
Hello guys
I downloaded jedit to use for my java programming studies! I use mac but i have no clue how to run the program!! I dont know how to compile, where to write the java code, its a bit confusing, it doesnt look like this picture http://jedit.org/index.php?page=screenshot&image=22
P.S. im just starting my "hello world" program.
thanks
jEdit hijacked ctrl+alt+j
Submitted by
wtijsma on
Thursday, 18 October, 2007 - 10:59
Hi,
For some reason JEdit hijacked my ctrl+alt+j combination to start up, where can I change this (to Windows + J for example?)? It's quite an important shortcut for me in other programs, and I couldn't find it quick enough in the global settings, and didn't disable the shortcut on stopping JEdit Server

so I had to uninstall unfortunately.
Thank you in advance...
Wiebe Tijsma
Mode C onversion and Newbie Console Help
Submitted by
woodslanding on
Thursday, 18 October, 2007 - 09:14
I am using a program called MUP, which compiles music graphics from text files I have been editing in JEdit. There are currently MUP syntax highlighting files for VIM, EMACS and KATE. I'm wondering if there is any way to convert any of these files into a mode file that JEdit can use. Or if there is a good tutorial out there on the way in which these type of syntax files are set up. It's obviously a problem that has been addressed by a number of programs in a variety of ways, but it's pretty much greek to me.
Also, if there is an intro to console tutorial somewhere, I'd like to check it out. The MUP compiler runs from the command line, so I'm thinking it should be possible to get it to compile from the console in JEDIT, but I'm not at all command-line savvy.... Ideally, I'd like to just compile from a key-command.
Any help welcome!
-eric
Xinsert, can't find it...
Submitted by
Moofar on
Tuesday, 25 September, 2007 - 02:25
I've installed the Xinsert plugin, and I can modify its options, all the dependencies are installed, everything seems to be right, but its functionality seems to be totally missing. When selecting it on the plugins menu bar, its just 1 entry and it does nothing. Any help would be appreciated.
BASIC highlighting
Submitted by
berliita on
Sunday, 23 September, 2007 - 21:44
Hello.
Can JEdit highlight FreeBASIC, QBasic or any other BASIC dialect code?
How does jEdit compare to Vim?
Submitted by
aaron.m on
Thursday, 20 September, 2007 - 14:28
I just stumbled across jEdit yesterday, and it looks promising, but I have a few issues:
1. How do you save editing sessions? Let's say I have 10 buffers open, with different screen arrangements, etc. How do I save all of that so I don't have to re-load buffers and re-position the panes? I'm not trying to start a flame-war, but Vim does this easily.
2. Again, a comparison to Vim, but how do I easily resize all panes to be of equal size?
3. What about tabs for organizing your editing views?
I know someone's going to say, "Well, if you like Vim that much, just use it." And I do. But I like what I see of jEdit so far, and want to give it a chance.
ContextHelp for PHP
Submitted by
ovidiu on
Thursday, 20 September, 2007 - 11:09
Hi,
I can't get the ContextHelp plugin to work (in my case, PHP). I downloaded php_manuan_en.chm, moved it to .jedit/contexthelp/php, modified the filename accordingly in .jedit/contexthelp/php/keyword.bsh but... zilch. I select a function name, I run "Plugins -> Context Help -> Search keyword" and nothing happens.
Does anybody have an example for a valid configuration of ContextHelp? Also, is this plugin still compatible with the latest versions of jEdit? The latest plugin version is dated March 27, 2003!
Thanks.
Syntax highlight wildcard?
Submitted by
sigfreund on
Thursday, 20 September, 2007 - 10:28
Is there a way to define a wildcard to define a keyword for highlighting? I want to have all of the key words LCD_Col1, LCD_Col2, ... , LCD_Col99 highlighted the same color?
Thanks
Sig
Regex lookbehinds in edit mode definition don't work
Submitted by
hmhoek on
Thursday, 20 September, 2007 - 08:29
I'm trying to improve the highlighting on methods and properties in my Powershell mode. It seems to me that lookbehinds are the best way to get this done. The following example shows what I believe to be a valid statement:
<SEQ_REGEXP TYPE="KEYWORD3">(?<=\$[a-z]{1,100}\.)\w+(?=\()</SEQ_REGEXP>
This matches "$foo.bar()" when I do a search but doesn't highlight it (I'm trying to highlight "bar"). Is this something to do with the tokens being passed aroung the highligher simply not having characters for the lookbehind to match?
I don't see any other modes using this technique so I'm wondering if anyone has tried it.
no more code-hints with html?
Submitted by
tomasio on
Tuesday, 18 September, 2007 - 21:18
e.g.: &[auml;]
[ouml;]
[uuml;] whereas the brackets shall visualize the code-hint which in earlier versions of my jedit (4.3pre, Windows XP and Mac OS 10.3.9) popped up with suggestions how to complete my html code. It also closed tags: when I wrote
some text here
it put automatically [body>] to close the tag appropriately.
Monospaced Programmers fonts like
Profont seem to work bad with JEdit on my Apple, as the caret showing where you are editing is misplaced. sometimes i wanted to delete an unwanted space and it started deleting some letters before that.
and last, but not least the feature I miss most bitterly. The brackets to the left of the gutter which are connecting the starting and end tags. strangely enough this seems to work only with CSS code.
here is a explanatory screenshot.
Does anybody has any solution to these incidents? Or could you give me a clue of what I am doing wrong?
THX in advance,
--
tomasio
autocomplete not turning off
Submitted by
Thadanator on
Tuesday, 18 September, 2007 - 07:52
When I'm editing html, and I type "</" I DON'T want it to complete it for me!
That creates this: "</span>span>" (because I typed the whole thing) which is very annoying. It's even worse if it ended the wrong tag. Sometime's (rarely) it shows a little box by my cursor that requires me to press ENTER to autocomplete. Why only sometimes?!?!?
So, what option is this under, I've searched google and this forum far and high but nothing works.
Thank you.
Find Highlighted
Submitted by
abc123 on
Monday, 17 September, 2007 - 15:51
Does anyone know how to find the currently highlighted text in Jedit? What I mean is:
1. Highlight a word
2. Execute a key stroke that then finds that word immediately
I can kind of get this to work if I use the Incremental Search Bar but it requires a keystroke to get the highlighted characters into the Incremental Search Bar and then another keystroke to find whatever was copied into the Incremental Search bar. I'd like to be able to do this with one keystroke. Hypersearch is good but I don't always want to open another window.
Highlight search results?
Submitted by
Redoute on
Sunday, 16 September, 2007 - 15:57
Another question: Is there something like Vim's hlsearch option in jEdit?
I already found the Highlight-plugin, that allows to highlight the results from last search, but doesn't change with the next search.
Is there a way to automatically highlight results during/after every search?
Change line-end marker?
Submitted by
Redoute on
Sunday, 16 September, 2007 - 15:47
Hello,
is it possible to change the line-end marker in jEdit? The dot confuses me, I would prefer the well-known Pilcrow sign.
I hate to be a moron but... (VB and SQL edit mode question)
Submitted by
Beestie on
Friday, 14 September, 2007 - 06:36
I hate to be a moron - I have *tried* to figure this out before posting - but where is the edit mode for VB and SQL. After scouring the features pages online and the help files, I became sure that VB and SQL edit modes were included in the base package but they are not in the list (I see sql-loader and VBscript, tho).
I also looked very hard in the plugin pages but did not see plugins for VB and SQL edit modes which sort of confirmed my understanding that they were already included.
I just discovered this program and am thus far amazed but it would be very helpful if I could figure out how to activate these two edit modes as that is the primary reason for me to utilize jEdit.
Thanks in advance for taking the time to reply to an annoying newbie
Help! Poker playing jEdit noob needs urgent .txt file help
Submitted by
ddess on
Monday, 10 September, 2007 - 12:11
Hello All
I am a poker player. I use various tools to analyse my play. One of these tools relies on the importing of .txt files. However, the pokersite I use has recently changed the formatting of their so called Hand History .txt files and I can no longer import them into my hand analyses software. The chags to the .txt files are easy to see but finding a tool to make these changes in bulk correctly is proving somewhat of a challenge. A single poker hand looks like the one shown below and a session is a series of hands all stored in a single .txt file.
My ability to execute this is essential and I would be delighted to hear from anyone who could help set me on the right road. I'm sure with the right knowledge this will be fairly simple. Below are a couple of examples of the formatting changes that I need to make
I look forward to hearing from anybody who feels they can help.
1. First Line
Instead of - TEXAS_HOLDEM, , 309556744
I need it to read - Texas Hold'em $1-$2 NL (Real Money), #309556744
Where the '$1-$2' is information collected from the line beneath ANTES/BLINDS
2. 'FLOP' & 'TURN' Line
In this particular hand the information contained in the [ ] after the words FLOP and TURN is identical. I need to be able to identify this and where it is identical overwrite the TURN line with the text SHOWDOWN so :-
FLOP [board cards: 7H,5H,2D ]
Haemaelii bets $12, MaccaDrum folds.
TURN [board cards: 7H,5H,2D ]
Haemaelii wins $30.05.
becomes
FLOP [board cards: 7H,5H,2D ]
Haemaelii bets $12, MaccaDrum folds.
SHOWDOWN
Haemaelii wins $30.05.
____________
TEXAS_HOLDEM, , 309556744
played at "Bruckmur" for USD RM from 1969-12-31 18:59:59
Seat 1: masterF ($473.25 in chips)
Seat 2: Tekkie5 ($170.35 in chips)
Seat 3: Johnnie1970 ($236.90 in chips)
Seat 4: DJDomus ($32 in chips)
Seat 5: MaccaDrum ($181.55 in chips)
Seat 6: x..X..x ($139.65 in chips)
Seat 7: 123Arttu ($201.95 in chips)
Seat 8: Kukko8383 ($20 in chips)
Seat 9: ghttt11444 ($208 in chips)
Seat 10: Haemaelii ($293 in chips)
ANTES/BLINDS
123Arttu posts blind ($1), Kukko8383 posts blind ($2).
PRE-FLOP
ghttt11444 folds, Haemaelii bets $8, masterF folds, Tekkie5 folds, Johnnie1970 folds, DJDomus folds, MaccaDrum calls $8, x..X..x folds, 123Arttu folds, Kukko8383 folds.
FLOP [board cards: 7H,5H,2D ]
Haemaelii bets $12, MaccaDrum folds.
TURN [board cards: 7H,5H,2D ]
Haemaelii wins $30.05.
SUMMARY
Dealer: x..X..x
Pot: $31, (including rake: $0.95)
masterF, loses $0
Tekkie5, loses $0
Johnnie1970, loses $0
DJDomus, loses $0
MaccaDrum, loses $8
x..X..x, loses $0
123Arttu, loses $1
Kukko8383, loses $2
ghttt11444, loses $0
Haemaelii, bets $20, collects $30.05, net $10.05
_________________
colorizing text
Submitted by
sinebubble on
Friday, 7 September, 2007 - 18:03
I'm working with a fairly large shell script with lots of if statements. I'm trying to find some way of colorizing blocks of text to show my closed if statements, but I'm not having any success. Couldn't find a plugin to do the work, either. Any advice?