hubFS: THE place for F#

. . . are you on The Hub?
Welcome to hubFS: THE place for F# Sign in | Join | Help
in Search

My F# Editor

Last post 06-13-2007, 9:18 by Brennan. 6 replies.
Sort Posts: Previous Next
  •  02-11-2007, 14:07 1811

    My F# Editor

    I made a F# editor by C#. If you haven't visual studio 2005, you will use it.

    ScreenShots;
    ScreenShot1

    Download;
    F# Editor(exe)
    28kb
    F# Editor with Microsoft's Compiler
    7.87mb
    F# Editor Source Code
    42kb

    When you run this file go "Tools>Set F# Path" and find fsc.exe's folder.
  •  02-12-2007, 12:04 1819 in reply to 1811

    Re: My F# Editor

    Hi

    I wasn't able to look at the screen shot - I think the server you palced it on is only allowing access to the person who posted it?  Any chance you could fix that?

    Thanks

    Don

  •  02-12-2007, 12:09 1820 in reply to 1819

    Re: My F# Editor

    Well, it's working now.. :-)

    Can I ask if you plugged into the APIs available from FSharp.Compiler.dll?  These will let you use the F# compiler itself as a service to help implement F# lexing, parsing, type checking and IntelliSense for your editor.  This is covered briefly at http://cs.hubfs.net/forums/permalink/1239/1243/ShowThread.aspx#1243, and you can email the F# team at Microsoft if you want more details on how to use the API.

    Cheers!

    don

     

  •  05-30-2007, 7:03 3182 in reply to 1811

    Re: My F# Editor

    Unfortunately I can't download any of the files, Ialways get a Page not found error message.

     

    Please help.

     

    ikorcsmaros

  •  06-13-2007, 7:30 3250 in reply to 1811

    Re: My F# Editor

    Why not write it in F#?

    I just used Winforms, wrote a simple RichTextBox with some menu items (New, Open, Save As, Save, Compile with optional flag settings) in notepad and since then I've written my F# IDE with my F# IDE (Can't recompile it while it's running unfortunately, lol).

    Forgot about the FSharp.Compiler.dll. Thanks Don. Looks like I'll be able to trim some code and use the lexer instead of the one I wrote (as well as getting rid of the system call to fsc I'm making... crude). I gotta start looking more thouroughly instead of wasting my time duplicating work. Suppose I'm not quite used to all this wonderful managed code yet :)

    Best of luck with your editor genjurosei.
  •  06-13-2007, 7:41 3251 in reply to 3250

    Re: My F# Editor

    Has any one thought about posting there editor on sourceforge.org or codeplex.com? There seems to be a few people creating there own F# editors (I remember another thread about this a while ago) and seems if we worked together we'd probably get quite a further.

    Also has anyone considered writing an F# plugin for sharpdev? This would save rewriting a basic ide framework. Write a plugin is on my TODO list, but quite away down. This might be another thing we could do as a community with the project hosted on  sourceforge.org or codeplex.com.

    Just a thought.

    Rob


    Robert Pickering, MVP
    http://strangelights.com
  •  06-13-2007, 9:18 3252 in reply to 3251

    Re: My F# Editor

    I prefer the idea of writing the IDE in F#, so a plugin is not my ideal sol'n.

    I'd be willing to offer up my groundwork (what little there is) but first I'd like to get some features cleaned up a bit (such as using the proper lexer). I haven't touched it in a week though, but if other people are into it I'll get it cleaned up tonight.

    So far I've got:
    In the menu:
    File with
    -New
    -Open
    -Save As and Save (as well as some logic to give you a Save As if you've never saved the file before)
    -Exit (duh)
    Edit with
    - Undo Ctrl-Z
    - Redo Ctrl-Y
    Project with
    -Compile (with a text box to type in what flags to use. I'd like to make this into Checkboxes s.t. adding the html gen flag or compiling for console or win32 is simply a click of a checkbox ... easy to do)
    Help with
    - About (A blank box pops up in the middle of the screen)

    As for the main area (which is fully resizable), there is a place to type and the begginings of some sort of a list to show all open files as well as some controls (This is probably what I'll work on tonight).

    It's a slim ~200 lines of code, but I believe a good starting point.
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems