精华内容
下载资源
问答
  • Hex Editor

    2012-08-17 03:42:58
    hex editor.
  • HexEditor

    2013-03-27 11:07:00
    HexEditor.xaml 1 <UserControl x:Class="MeterGui_BlendView.HexEditor" 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x="http://schemas....
    HexEditor.xaml
     1 <UserControl x:Class="MeterGui_BlendView.HexEditor"
     2              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
     3              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     4              xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
     5              xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
     6              mc:Ignorable="d"   x:Name="myHexEditer"
     7              FontFamily="Arial"  Width="510"  MaxHeight="1000" MinHeight="180"
     8              >
     9     <Grid>
    10         <Grid.RowDefinitions>
    11             <RowDefinition Height="auto"/>
    12             <RowDefinition Height="auto"/>
    13             <RowDefinition Height="auto"/>
    14             <RowDefinition/>
    15             <RowDefinition Height="auto"/>
    16         </Grid.RowDefinitions>
    17         <StackPanel Grid.Row="2" HorizontalAlignment="Stretch" Background="#FFECE9D9"
    18                     Orientation="Horizontal" VerticalAlignment="Top">
    19             <TextBox
    20                     MinLines="1" Padding="0" BorderThickness="1" Width="50" BorderBrush="{x:Null}"
    21                     FontFamily="Consolas" TextWrapping="Wrap" Background="{x:Null}" IsReadOnly="True">
    22             </TextBox>
    23             <TextBox
    24                     Padding="0" BorderThickness="0" Width="315" BorderBrush="Gray"
    25                     FontFamily="Consolas" TextWrapping="Wrap" Foreground="Gray" Background="{x:Null}" IsReadOnly="True" VerticalAlignment="Bottom">
    26                 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
    27             </TextBox>
    28             <TextBox
    29                     Padding="0" BorderThickness="0" Width="110" BorderBrush="LightGray"
    30                     FontFamily="Consolas" TextWrapping="Wrap" Foreground="White" Background="{x:Null}" IsReadOnly="True">
    31 
    32             </TextBox>
    33         </StackPanel>
    34         <ScrollViewer Grid.Row="3" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Visible" MaxHeight="200">
    35             <Grid x:Name="GridM">
    36                 <Grid.ColumnDefinitions>
    37                     <ColumnDefinition Width="auto"/>
    38                     <ColumnDefinition Width="auto"/>
    39                     <ColumnDefinition/>
    40                 </Grid.ColumnDefinitions>
    41                 <TextBox x:Name="SeriseN"
    42                     MinLines="10" Padding="0" BorderThickness="0,0,1,0" Width="50"
    43                     FontFamily="Consolas" TextWrapping="Wrap" Foreground="Black" Background="White" IsReadOnly="True" BorderBrush="Gray">
    44                     0x0001 0x0002 0x0003 0x0004 0xefef 0xabcd 0x0001 0x0002 0x0003
    45                 </TextBox>
    46                 <TextBox x:Name="PacketII" Grid.Column="2" 
    47                     MinLines="10" Padding="0" BorderThickness="0" Width="110"
    48                     FontFamily="Consolas" TextWrapping="Wrap" Foreground="Green" Background="White"
    49                          Text=".1$2SEFTaQ4Q5.12SEFTaQ4Q5.1$2SEFTaQ4Q5.1$2SEFTaQ4Q5.1$2SEFTaQ4Q5.1$2SEFTaQ4Q5" IsReadOnly="True" CharacterCasing="Normal" BorderBrush="Black">
    50                     <!--.1$2SEFTaQ4Q5.12SEFTaQ4Q5.1$2SEFTaQ4Q5.1$2SEFTaQ4Q5.1$2SEFTaQ4Q5.1$2SEFTaQ4Q5-->
    51                     <TextBox.ContextMenu>
    52                         <ContextMenu Visibility="Collapsed">
    53                             <MenuItem Header="复制" Command="ApplicationCommands.Copy" x:Name="MenuItem01" />
    54                             <MenuItem Header="粘贴" Command="ApplicationCommands.Paste" x:Name="MenuItem11" />
    55                             <MenuItem Header="剪切" Command="ApplicationCommands.Cut" x:Name="MenuItem21" />
    56                         </ContextMenu>
    57                     </TextBox.ContextMenu>
    58                 </TextBox>
    59                 <TextBox x:Name="TB" Grid.Column="1"
    60                     TextChanged="TB_TextChanged" 
    61                     PreviewTextInput="TB_PreviewTextInput"
    62                     MinLines="10" Padding="0" BorderThickness="0" Width="315"
    63                     FontFamily="Consolas" TextWrapping="Wrap" AllowDrop="False">
    64                     aa bb cc dd ee ff 00 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff 00 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff
    65                 </TextBox>
    66             </Grid>
    67         </ScrollViewer>
    68     </Grid>
    69 </UserControl>
    HexEditor.xaml.cs
      1 using System;
      2 using System.Collections.Generic;
      3 using System.Linq;
      4 using System.Text;
      5 using System.Windows;
      6 using System.Windows.Controls;
      7 using System.Windows.Data;
      8 using System.Windows.Documents;
      9 using System.Windows.Input;
     10 using System.Windows.Media;
     11 using System.Windows.Media.Imaging;
     12 using System.Windows.Navigation;
     13 using System.Windows.Shapes;
     14 
     15 namespace MeterGui_BlendView
     16 {
     17     /// <summary>
     18     /// HexEditor.xaml 的交互逻辑
     19     /// </summary>
     20     public partial class HexEditor : UserControl
     21     {
     22         public HexEditor()
     23         {
     24             InitializeComponent();
     25             Binding binding = new Binding();
     26             binding.Source = this;
     27             binding.Path = new PropertyPath("HexText");
     28             binding.Mode = BindingMode.TwoWay;
     29             binding.UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged;
     30             TB.SetBinding(TextBox.TextProperty, binding);
     31         }
     32         public static readonly DependencyProperty HexTextProperty = DependencyProperty.Register(
     33         "HexText", typeof(string), typeof(HexEditor), new FrameworkPropertyMetadata(""));
     34 
     35         public string HexText
     36         {
     37             get { return (string)GetValue(HexTextProperty); }
     38             set { SetValue(HexTextProperty, value); }
     39         }
     40         public static readonly DependencyProperty AutoNumberProperty = DependencyProperty.Register(
     41         "AutoNumber", typeof(long), typeof(HexEditor), new FrameworkPropertyMetadata((long)2));
     42 
     43         public long AutoNumber
     44         {
     45             get { return (long)GetValue(AutoNumberProperty); }
     46             set { SetValue(AutoNumberProperty, value); }
     47         }
     48 
     49         private void TB_PreviewTextInput(object sender, TextCompositionEventArgs e)
     50         {
     51             int p = (sender as TextBox).SelectionStart;
     52             int pl = (sender as TextBox).SelectionLength;
     53             string s = (sender as TextBox).Text;
     54             if ("0123456789ABCDEF".Contains(e.Text.ToUpper()))
     55             {
     56                 //s=s.Remove(p+1,pl-1)
     57                 if (p == s.Length)
     58                 {
     59                     s = p == 0 ? s + e.Text + "0" : s + " " + e.Text + "0";
     60                     p = p == 0 ? p : p + 1;
     61                 }
     62                 else
     63                 {
     64                     //如果空格结尾会有索引越界情况
     65                     if (s.Substring((sender as TextBox).SelectionStart, 1) == " ")
     66                     {
     67                         p = p + 1;
     68                     }
     69                     s = s.Remove(p, 1);
     70                     s = s.Insert(p, e.Text);
     71                 }
     72             }
     73             (sender as TextBox).Text = s;
     74             (sender as TextBox).SelectionStart = p + 1;
     75             e.Handled = true;
     76         }
     77 
     78         private void TB_TextChanged(object sender, TextChangedEventArgs e)
     79         {
     80             int p = (sender as TextBox).SelectionStart;
     81             string s = (sender as TextBox).Text;
     82             FormatHex(ref s);
     83             (sender as TextBox).Text = s;
     84             (sender as TextBox).SelectionStart = p;
     85             HexText = TB.Text.Replace(" ", "");
     86             UpdateNo();
     87             UpdateAsiic();
     88         }
     89 
     90 
     91         private void FormatHex(ref string s)
     92         {
     93             s = s.Replace(" ", "");
     94             //s = ((s.Length % AutoNumber) == 0) ? s : (s + "0");
     95             //if (s.Length >= 128)
     96             //    s = s.Substring(0, 128);
     97             for (int i = ((int)AutoNumber - s.Length % (int)AutoNumber) % (int)AutoNumber; i > 0; i--)
     98             {
     99                 s = s + "0";
    100             }
    101             int l = s.Length;
    102             int n = (l - 2) / 2;
    103             for (int i = n; i > 0; i--)
    104             {
    105                 s = s.Insert(2 * i, " ");
    106             }
    107             s = s.ToUpper();
    108         }
    109 
    110         private void UpdateNo()//*
    111         {
    112             #region regresh No.
    113             int n = TB.LineCount;
    114             string s = "";
    115             string temp = "";
    116             for (int i = 0; i < TB.LineCount; i++)
    117             {
    118                 temp = "";
    119                 temp = (i * 16).ToString("x4");
    120                 switch (temp.Count<char>())
    121                 {
    122                     case 0:
    123                         temp = "0x0000";
    124                         break;
    125                     case 1:
    126                         temp = "0x000" + temp;
    127                         break;
    128                     case 2:
    129                         temp = "0x000" + temp;
    130                         break;
    131                     case 3:
    132                         temp = "0x0" + temp;
    133                         break;
    134                     default:
    135                         temp = "0x" + temp.Substring(0, 4);
    136                         break;
    137                 }
    138                 s += temp;
    139             }
    140             SeriseN.Text = s;
    141             #endregion
    142         }
    143         private void UpdateAsiic()
    144         {
    145             string s = TB.Text.Replace(" ", "");
    146             char[] tc = new char[s.Count<char>() / 2];
    147 
    148             for (int i = 0; i < (s.Count<char>() / 2); i++)
    149             {
    150                 byte b = byte.Parse(s.Substring(2 * i, 2), System.Globalization.NumberStyles.HexNumber);
    151                 if (
    152                     (
    153                     (b >= 0x30 & b <= 0x39)
    154                     | (b >= 0x41 & b <= 0x5a)
    155                     | (b >= 0x61 & b <= 0x7a)
    156                     )
    157                     //b > 0x20 & b < 0x7e
    158                     & b != 0x24//$
    159                     & b != 0x2a
    160                     & b != 0x2b//+
    161                     & b != 0x3b//;
    162                     & b != 0x40//@
    163                     & b != 0x5e//^
    164                     & b != 0x5b
    165                     & b != 0x7b
    166                     )
    167                     tc[i] = (char)b;
    168                 else
    169                     tc[i] = (char)0x2e;
    170 
    171             }
    172             string temp = new string(tc);
    173             PacketII.Text = temp;
    174         }
    175 
    176 
    177     }
    178 }
    <vi:HexEditor HexText="{Binding Padding, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>

     

    转载于:https://www.cnblogs.com/xiaoboz/archive/2013/03/27/2984179.html

    展开全文
  • 简单16进制编辑器,可复制剪切查找替换,插入等,编辑后可保存,功能一般,适合学习。
  • 根据Be.HexEditor做了点改动,读取16进制数据更方便的了。找了半天,也只有Be.HexEditor才比较好,有C#源码。而且读入大文件也非常快的,本例做了最简单和常用的示例。关键是有源码了就能改动为自己想显示出的数据...
  • HexEditor1.dll.zip

    2019-05-30 00:12:08
    HexEditor
  • hexEditor 64位

    2018-09-21 17:07:22
    hexEditor 64位插件 真正的64位 支持查看16进制数据 Hex Editor使用说明 解压缩后把HexEditor.dll文件复制到安装目录(如C:\Program Files\Notepad++\plugins),退出NotePad++重新打开即可!需要以十六进制显示时...
  • HexEditor.zip

    2021-03-04 13:55:30
    解压缩后,将HexEditor.dll放入plugins文件夹中
  • HexEditor.rar

    2019-07-20 15:55:35
    老版本的notepad++,应该放到Notepad++\plugins目录下。 新版本的notepad++,需要建立一个HexEditor文件夹,然后放到HexEditor文件夹内。
  • Hex Editor Neo

    2015-04-11 23:35:38
    Hex Editor Neo
  • Hex Editor 16进制编辑器

    2017-12-19 23:10:31
    Hex Editor 16进制编辑器Hex Editor 16进制编辑器Hex Editor 16进制编辑器Hex Editor 16进制编辑器
  • HexEditor.dll

    2018-01-24 19:18:26
    Notepad++二进制查看器(HexEditor) Notepad++ plugins is a collection of tools which plays a role of completion for Notepad++. This project contains Explorer, Function List, Hex Editor, Spell Checker and...
  • hex editor_6.25.zip

    2021-04-08 01:09:35
    hex editor_6.25.zip
  • HexEditor64位

    2018-07-17 16:02:18
    Notepad++的HexEditor64位文件,可以用来打开十六进制的class文件
  • Hex Editor Neo.zip

    2019-06-13 19:36:09
    Hex Editor Neo 安装包 检查图片真实格式
  • notepad插件hexEditor

    2019-02-28 15:47:44
    解压缩后把HexEditor.dll文件复制到安装目录(如d:\soft\Notepad++\plugins),退出NotePad++重新打开即可!需要以十六进制显示时,点击菜单的:【插件】-【Hex-Editor】-【View in Hex】即可。
  • HexEditor是一个小型,快速,简单的十六进制编辑器。它使用可重复使用的控制HexBox2十六进制编辑功能。 基于HexBox-1.6.0。 此C#控件可用于每个.NET Framework应用程序。 受欢迎的翻译和程序员支持新版本(2.0.1)...
  • Notepad++的64位HexEditor免费下载

    万次阅读 多人点赞 2018-10-10 22:05:44
    64位Notepad++的HexEditor下载",搜索结果全是CDSN的用户上传的需要积分才能下载的链接。我就奇了怪了,这个插件明明是人人可取之,用之的东西,却成了你们赚积分的工具,好生不要脸。  下面是Notepade++64位...

          在百度上搜索"64位Notepad++的HexEditor下载",搜索结果全是CDSN的用户上传的需要积分才能下载的链接。我就奇了怪了,这个插件明明是人人可取之,用之的东西,却成了你们赚积分的工具,好生不要脸。
           下面是Notepade++64位HexEditor插件的下载链接,完全不需要积分!

           https://github.com/chcg/NPP_HexEdit/releases
           祝大家在使用插件的过程中顺利!!!

    展开全文
  • HexEditor64位.rar

    2020-04-08 17:24:43
    Github最新的64位HexEditor.dll插件,已测试,可正常使用,用于查看二进制和十六进制文件。 使用方法: 在Notepad++安装目录中的plugins文件夹下创建一个文件夹,例如“HexEditor”,将dll文件放进去即可。
  • HexEditor_0.9.9_arm64.zip

    2021-08-03 17:05:30
    HexEditor 插件
  • HexEditor_0.9.5.19_64.zip

    2019-11-28 09:21:27
    HexEditor.dll 64位 HexEditor.dll 64位 HexEditor.dll 64位
  • HexEditor095.rar

    2020-07-29 16:28:41
    Notepad++ 二进制 十六进制 文件编辑插件,HexEditor_0_9_5_ANSI_dll.zip, HexEditor_0_9_5_UNI_dll.zip, 复制到Notepad++\plugins 目录下,重启Notepad++
  • HexEditor2.exe

    2020-12-18 11:05:09
    查看文件的二进制HexEditor,二进制查看器

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 11,096
精华内容 4,438
关键字:

hexeditor