Code Text Edit icon

Used in code type scenarios. The Code Text Edit icon is part of Microsoft's Fluent UI System Icons, available here in regular and filled styles on a 20 px grid. Download it as SVG or PNG, or copy it as code — it's free to use under the MIT License.

Regular (outlined)

SVG

Filled

SVG

Every size and style

Microsoft draws each size separately so icons stay crisp, rather than scaling one drawing. Pick a style and size to preview it, download it, or copy the code for your platform.

Regular, 20 px

ic_fluent_code_text_edit_20_regular.svg

Code Text Edit icon in React

npm install @fluentui/react-icons

import { CodeTextEdit20Regular } from "@fluentui/react-icons";

export function Example() {
  return <CodeTextEdit20Regular aria-label="Code Text Edit" />;
}

Code Text Edit icon in SVG

npm install @fluentui/svg-icons

import icon from "@fluentui/svg-icons/icons/code_text_edit_20_regular.svg";

<!-- or load it from a CDN -->
<img src="https://cdn.jsdelivr.net/npm/@fluentui/[email protected]/icons/code_text_edit_20_regular.svg" width="20" height="20" alt="Code Text Edit">

Code Text Edit icon in Blazor

Microsoft's Fluent UI Blazor icons package:

dotnet add package Microsoft.FluentUI.AspNetCore.Components.Icons

<FluentIcon Value="@(new Icons.Regular.Size20.CodeTextEdit())" />

Code Text Edit icon in Flutter

flutter pub add fluentui_system_icons

import 'package:fluentui_system_icons/fluentui_system_icons.dart';

Icon(FluentIcons.code_text_edit_20_regular)

Code Text Edit icon in WinUI / WPF

Add FluentSystemIcons-Regular.ttf from Microsoft's repository to your app, then use the glyph:

<!-- WinUI 3 (font in Assets/Fonts) -->
<FontIcon FontFamily="ms-appx:///Assets/Fonts/FluentSystemIcons-Regular.ttf#FluentSystemIcons-Regular" Glyph="&#xE3BB;" FontSize="20" />

<!-- WPF (font in Fonts/, Build Action: Resource) -->
<TextBlock FontFamily="pack://application:,,,/Fonts/#FluentSystemIcons-Regular" Text="&#xE3BB;" FontSize="20" />

Code Text Edit icon in Icon font

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/microsoft/fluentui-system-icons@9cf8af0f95a555918a60b8147a2f33a6a1248442/fonts/FluentSystemIcons-Regular.css">

<i class="icon-ic_fluent_code_text_edit_20_regular"></i>

/* or use the code point in your own CSS */
.icon::before {
  font-family: "FluentSystemIcons-Regular";
  content: "\e3bb";
  font-size: 20px;
}

Code Text Edit icon in Android

// build.gradle
implementation("com.microsoft.design:fluent-system-icons:1.1.341@aar")

<!-- layout XML -->
<ImageView android:src="@drawable/ic_fluent_code_text_edit_20_regular" />

// Kotlin
R.drawable.ic_fluent_code_text_edit_20_regular

Code Text Edit icon in iOS

# Podfile
pod "FluentIcons", "1.1.341"

import FluentIcons

UIImage(fluent: .codeTextEdit20Regular)

Code Text Edit icon in Power Apps

Paste into an Image control's Image property. The Copy button copies the full formula with this icon's SVG.

"data:image/svg+xml;utf8, " & EncodeUrl("<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'>…</svg>")

Use the Code Text Edit icon in React

Install Microsoft's @fluentui/react-icons package, then import the component. Icons inherit the current text color, and you can size them with CSS.

npm install @fluentui/react-icons

import { CodeTextEdit20Regular, CodeTextEdit20Filled } from "@fluentui/react-icons";

export function Example() {
  return <CodeTextEdit20Regular aria-label="Code Text Edit" />;
}

Use it in HTML

Reference the SVG file directly:

<img src="https://fluenticons.co/icons/ic_fluent_code_text_edit_20_regular.svg" width="20" height="20" alt="Code Text Edit">

Or paste the SVG markup inline. Setting fill="currentColor" makes the icon follow the text color of its parent:

<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M2.5 5a.5.5 0 0 0 0 1H8a.5.5 0 0 0 0-1zm3 3a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1zM4 11.5c0-.28.22-.5.5-.5h9.44l-1 1H4.5a.5.5 0 0 1-.5-.5m6.27 3.17.67-.67H2.5a.5.5 0 0 0 0 1h7.49q.13-.18.28-.33M12.5 8.5c0-.28.22-.5.5-.5h3.5a.5.5 0 0 1 0 1H13a.5.5 0 0 1-.5-.5m-2-3.5a.5.5 0 0 0 0 1H17a.5.5 0 0 0 0-1zm.48 10.38 4.83-4.83a1.87 1.87 0 1 1 2.64 2.64l-4.83 4.83a2 2 0 0 1-1.02.58l-1.5.37a.9.9 0 0 1-1.07-1.07l.37-1.5q.16-.6.58-1.02"/></svg>

Details

NameCode Text Edit
StylesRegular (outlined), Filled
Sizes20 px
Regular (outlined) fileic_fluent_code_text_edit_20_regular.svg
Filled fileic_fluent_code_text_edit_20_filled.svg
React (Regular)CodeTextEdit20Regular
React (Filled)CodeTextEdit20Filled
LicenseMIT (© Microsoft Corporation)

Keywords

bracketslashscripttexttype

Related icons