Snippets tagged meta-programming

  • Convert the number of indentation spaces in a sourcecode.

    This small script converts continuous 4 spaces to 2 spaces by using Regex. It gets the source code from a clip board text and save it to clip board. Since this program doesn't parse the source code, conversion is not perfect. But writing script which interacts with clipboard is so easy, you can automate your trivial coding work with a small effort. Using F#interactive with Clipboard is my favorite way of meta-programming.

    3 people like this

    Posted: 12 years ago by nagat01