English

In this section, you will learn how to open an editor for ASN.1 files. You will also learn about some of the basic ASN.1 editor features.

  1. Expand the project MyHttp and select the source file MyHTTP.asn. You can open MyHTTP.asn in the ASN.1 editor directly by double clicking on it. Or you can open MyHTTP.asn in the ASN.1 editor by right clicking on it and selecting open in the pop-up menu.
  2. Notice the syntax highlighting. Different kinds of elements in the ASN.1 specification are rendered in unique colors.  Examples of ASN.1 specification elements that are rendered differently are:
    • Single-line comments
    • Multi-line comments
    • Keywords
    • Strings

    Syntax highlighting

  3. Look at the Outline view. It displays an outline of the ASN.1 file including the module declaration, export/import declarations, types, values and components. The Outline view uses icons to annotate ASN.1 elements.

    Outline view

  4. Toggle the Hide Exports And Imports, Hide Types, Hide Values, and Components buttons in the Outline view toolbar to filter the view's display.

    Outline view toolbar

  5. In the Outline view, select different elements and note that they are displayed in a whole file view in the editor. The Outline view selection contains a range indicator on the vertical ruler on the left border of the ASN.1 editor that indicates the range of the selected element.

    Range indicator

Next Section: 添加新的类型

Related concepts

ASN.1 editor

Related reference

ASN.1编辑器 Preferences