Welcome to APLNext Sign in | Join | Help
in
Community Website
Blogs Forums

Visual APL code snippets

Last post 02-08-2007, 5:14 PM by Jairo.Lopez. 1 replies.
Sort Posts: Previous
  • Visual APL code snippets

     02-07-2007, 2:34 PM

    I’m trying to create code snippets but not have been unable to access them from Visual Studio.

    I added the folder
        C:\Documents and Settings\....\Code Snippets\Visual APL\My Code Snippets

    and created a snippet file by taking a C# snippet and modifying it.   See below.

     

    What am I missing? 

    Can we have a web cast segment on creating/modifying/using snippets?

     

    In the snippet text below I’ve tried
     Code Language= “APL”  and  “APLNext” and “VisualAPL”.

    When I try to insert a snippet into the code from Visual Studio I get the message “No snippets available”. . . .

    <?xml version="1.0" encoding="utf-8"?>

    <CodeSnippets

        xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">

      <CodeSnippet Format="1.0.0">

        <Header>

          <Title>APL references</Title>

          <Description>Code snippet for setting APL references</Description>

          <Author>Kreg Corporation</Author>

        </Header>

        <Snippet>

          <Code Language="APL">

            <![CDATA[refbyfile @"C:\Program Files\AplNext\AplNext\AplNext.Apl.LegacyOps.dll"

    using APLNext.Legacy.NativeFileSystem

    using APLNext.Legacy.ShareFileSystem

    refbyfile @"C:\Program Files\AplNext\AplNext\APLNext.Qwi.dll"

    using APLNext.Qwi]]>

          </Code>

        </Snippet>

      </CodeSnippet>

    </CodeSnippets>

     

  • Re: Visual APL code snippets

     02-08-2007, 5:14 PM

    You need to wait for the next version of Visual APL (most likely RC 5.1) because the registration attribute required to support snippets is missing.

    You also need to change the Language in your snippet to be cielo. For example:

    <Code Language="cielo">

    Note: The "cielo" must be lowercase.

    To manage snippets on Visual Studio you can use the "Code Snippets Manager" (Ctrl+K Ctrl+B).

    With these utility you can create new folders for your snippets, add snippets, etc.

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems