
File ▶ New ▶ Package/Script ▶ Wolfram Language Package (.wl)
Wolfram Language Package (.wl)
creates a new package (.wl) window.
Details
- Package files are opened in the "package editor", a special notebook editor optimized for creating, editing and viewing package files.
- Package editor notebooks automatically save as .wl files, and .wl files automatically open as package editor notebooks.
- Package files save with non-evaluatable cells converted to comments with some comment metadata that marks the style of the cell.
- When a package notebook is saved to a package file, output, print and other generated cells are not saved as part of the package. Package files also strip inline styling information from textual cells. The result is a package file with less clutter that can also be edited in other editors.
- The package editor has a custom toolbar with functionality that has been optimized for writing package code.
- A new widget in the package editor toolbar is the Go To... field.
- The Go To... field can be used to find code. It supports the following interactions:
-
Click in field present an interactive outline of the notebook including section cells and function definitions Type text into field search the outline for text matching what has been typed, only showing matching results Type : (colon) followed by a number search the outline for the cells most closely corresponding to the given line number Click on outline or press select the cell containing the selected entry from the outline - The package editor is also used for editing WolframScript files and is invoked by opening a .wls file or using the menu command File ▶ New ▶ Package/Script ▶ WolframScript Script (.wls).

Related Workflows
- Create a Package File
Related Workflows
▪