Questions tagged [mcedit]

mcedit is an editor included with Midnight Commander featuring syntax highlighting for many languages, macros, code snippets, etc.

mcedit is an editor included with Midnight Commander, which can be executed as standalone program or from Midnight Commander using the F4 key.

Features include syntax highlighting for many languages, macros, code snippets, simple integration with external tools, automatic indentation, mouse support, clipboard and the ability to work in both ASCII and hex modes.

16 questions
3
votes
1 answer

mcedit and mcview - subshell not work on Ubuntu Linux, on mc - works well

I have the problem with not working subshell on mcedit and mcview of Midnight Commander package on all my Ubuntu systems. When I in mc file manager, ctrl+o drops me to the full-featured shell (bash), so I can see previous shell output, type and…
Murz
  • 199
  • 2
  • 9
2
votes
2 answers

Highlighting Syntax in mcedit for assembly

I want a code to be highlighted like this jmp label ;comments I want only label to be highlighted. I've tried something like this context exclusive jmp\t \n brightmagenta But in this case ";comments" turned brightmagenta as well which is not what I…
2
votes
1 answer

Mailchimp mc:hideable hides the wrong section within repeatable block

I've built a custom mailchimp template and added repeatable and hideable sections so my client can edit it more easily. I have read all the documentation, my code validates, and the email itself functions great, except for one problem. Here's the…
SlouchyFlower
  • 49
  • 1
  • 9
1
vote
1 answer

How do I copy and paste strings of codes on a text editor on BASH environment

Currently working on a BASH SCRIPT, how do i copy and paste a string of code?
1
vote
1 answer

MCEdit Filter: How do you create a chest in code?

In MCEdit filter programming, how do you create a chest from scratch? Aren't chests entities and handled differently than a block for which you could use setBlockAt. Can anyone show some sample code for creating a new empty chest in a filter? …
Wolfie
  • 1,801
  • 1
  • 14
  • 16
0
votes
1 answer

What are the "a1", "c1" bindings in mc.keymap (Midnight Commander)?

There are such bindings in mc.keymap, which don't describe a meaningful shift-like key combination, but something that looks like a raw character sequence that starts with a letter, and ends with a digit, e.g.: Top = home; alt-g; a1 # ← the sequence…
psprint
  • 349
  • 1
  • 10
0
votes
1 answer

How to highlight a comment in mcedit?

I need to highlight comments on mcedit using syntax file. One line comment begins with "--" and may end with "\n" or with "--". My syntax file content which responsible for comments is following: context -- \n brown spellcheck context /\* \*/…
Umid
  • 81
  • 1
  • 6
0
votes
2 answers

Open file in Midnight Commander directly from console?

I mean without launching MC. Like "vi somefile", but in MC editor.
MDI
  • 177
  • 10
0
votes
1 answer

How to open context menu in mcedit under ubuntu 16.04?

Can't open context menu with mouse right click. It worked fine in ubuntu 14.04. Is there any way to fix it?
Lisio
  • 1,571
  • 2
  • 15
  • 22
0
votes
1 answer

setting an array element with a senquence

I was trying to make an extension to a mcedit filter, originally by CrushedPixel, edited by NanoRex. That version they made doesn't support 1.9 snapshots / blocks, so I decided to make a better, lagless version that does! Here's the code: # MCEdit…
jetp250
  • 63
  • 5
0
votes
1 answer

convert unicode into list

What I have when I convert an png image into blocks then add the section sign (§), I then convert it to a string using: lframe = [e.encode('utf-8') for e in frame.split(',')] but when I do, it gives me…
0
votes
3 answers

TypeError: cannot concatenate 'str' and 'float' objects - MCEdit

I have this: rotValues = '[rx='+ rotx + ',' + "ry=" + roty +"]" It gives me the error shown in the title, help please!
user3261401
0
votes
1 answer

MCEdit filter - String Index out of Range Python

Used for an MCEdit Filter: Get Error: String Index out of range inputs = ( ("Change Relative Values", True), ("Change Exact Values", True), ("Use Selected Region", False), ("Min X:", 0), ("Max X:", 0), ("Min Y:", 0), …
-1
votes
2 answers

KeyError: 'Key x not found.'

I have this code from a MCEDit filter I was editing: def getCommand(level, box): for x in xrange(box.minx,box.maxx): for y in xrange(box.miny,box.maxy): for z in xrange(box.minz,box.maxz): t =…
user3261401
-2
votes
2 answers

TypeError: 'int' object is not iterable (beginning coder)

I need help with this: structureRegion = box blocks = 0 for x in xrange(structureRegion.minx,structureRegion.maxx): for y in xrange(structureRegion.miny,structureRegion.maxy): for z in xrange(structureRegion.minz,structureRegion.maxz): …
1
2