Hacker News new | past | comments | ask | show | jobs | submit login

'regions' sounds like you want software generated code...which sounds more like maybe you need to think about your architecture/process a little more. You can generate code with a build step.



Code generation would be possible but in my head it's more like paredit where edits operate on the underlying structure of the code.

Going back to the XML example. The contents of the ending tag are the contents of the first WORD of the starting tag. A syntax file could set up a region between the two so that changing one tag alters the other.

Similarly a syntax file could set up a one way region from function arguments to local uses such that altering the argument name updates the local uses.

It's possible to do this via AST manipulation at build time but I don't think it's practical.


I think you want to generate your XML with a template maybe.


Why all this "you want"? I realize it's just a turn of phrase that you are probably using without thinking, but seriously: don't you think grayrest knows what he/she wants better than you do? Structure editors are extremely useful and do not solve the same problem as templates at all.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: