Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pscbot committed Dec 4, 2022
0 parents commit dcfa02f
Showing 5 changed files with 356 additions and 0 deletions.
86 changes: 86 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# VB6 source files (show diff + keep CRLF in zip download)

*.bas working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6
*.cls working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6
*.ctl working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6
*.dob working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6
*.dsr working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6
*.frm working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6
*.pag working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6
*.vbg working-tree-encoding=CP1252 text eol=crlf
*.vbl working-tree-encoding=CP1252 text eol=crlf
*.vbp working-tree-encoding=CP1252 text eol=crlf
*.vbr working-tree-encoding=CP1252 text eol=crlf
*.vbw working-tree-encoding=CP1252 text eol=crlf

# Other source files (show diff + LF only in zip download)

*.asm text
*.asp text
*.bat text
*.c text
*.cpp text
*.dsp text
*.dsw text
*.h text
*.idl text
*.java text
*.js text
*.manifest text
*.odl text
*.php text
*.php3 text
*.rc text
*.sln text
*.sql text
*.vb text
*.vbs text

# Binary

*.res binary
*.frx binary
*.ctx binary
*.dsx binary
*.exe binary
*.dll binary
*.ocx binary
*.cmp binary
*.pdb binary
*.tlb binary
*.xls binary
*.doc binary
*.ppt binary
*.xlsx binary
*.docx binary
*.pptx binary
*.chm binary
*.hlp binary
*.jpg binary
*.png binary
*.bmp binary
*.gif binary
*.ico binary
*.zip binary
*.cab binary
*.7z binary
*.gz binary

# Text files but keep as binary (no diff)

# *.cfg text
# *.conf text
# *.csi text
# *.css text
# *.csv text
# *.def text
# *.htm text
# *.html text
# *.inf text
# *.ini text
# *.log text
# *.reg text
# *.rtf text
# *.txt text
# *.url text
# *.xml text
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.scc
*.dca
*.oca
*.obj
vb*.tmp
@PSC*
195 changes: 195 additions & 0 deletions HtmlText/FrmMain.frm
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
VERSION 5.00
Begin VB.Form FrmMain
BackColor = &H00E0E0E0&
Caption = "FrmHtmlText"
ClientHeight = 4170
ClientLeft = 60
ClientTop = 345
ClientWidth = 11115
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
ScaleHeight = 4170
ScaleWidth = 11115
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton CmdTurn
BackColor = &H00E0E0E0&
Caption = "Turn in Html Text"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 8760
Style = 1 'Graphical
TabIndex = 4
Top = 120
Width = 2295
End
Begin VB.TextBox TxtOutput
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1935
Left = 720
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 2
Top = 2160
Width = 7935
End
Begin VB.TextBox TxtInput
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1935
Left = 720
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 0
Top = 120
Width = 7935
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "Output:"
Height = 255
Left = 120
TabIndex = 3
Top = 2160
Width = 735
End
Begin VB.Label LblInput
BackStyle = 0 'Transparent
Caption = "Input:"
Height = 255
Left = 120
TabIndex = 1
Top = 120
Width = 735
End
End
Attribute VB_Name = "FrmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'Make the text with special chars
'To get more, go to http://www.ime.usp.br/~glauber/html/acentos.htm
Private Sub CmdTurn_Click()
CmdTurn.Caption = "Wait..."
Dim TextoNovo As String
For i = 1 To Len(TxtInput.Text)
If Mid(TxtInput.Text, i, 1) = "á" Then
TextoNovo = TextoNovo & "á"
ElseIf Mid(TxtInput.Text, i, 1) = "é" Then
TextoNovo = TextoNovo & "é"
ElseIf Mid(TxtInput.Text, i, 1) = "í" Then
TextoNovo = TextoNovo & "í"
ElseIf Mid(TxtInput.Text, i, 1) = "ó" Then
TextoNovo = TextoNovo & "ó"
ElseIf Mid(TxtInput.Text, i, 1) = "ú" Then
TextoNovo = TextoNovo & "ú"
ElseIf Mid(TxtInput.Text, i, 1) = "Á" Then
TextoNovo = TextoNovo & "Á"
ElseIf Mid(TxtInput.Text, i, 1) = "É" Then
TextoNovo = TextoNovo & "É"
ElseIf Mid(TxtInput.Text, i, 1) = "Í" Then
TextoNovo = TextoNovo & "Í"
ElseIf Mid(TxtInput.Text, i, 1) = "Ó" Then
TextoNovo = TextoNovo & "Ó"
ElseIf Mid(TxtInput.Text, i, 1) = "Ú" Then
TextoNovo = TextoNovo & "Ú"
ElseIf Mid(TxtInput.Text, i, 1) = "â" Then
TextoNovo = TextoNovo & "â"
ElseIf Mid(TxtInput.Text, i, 1) = "ê" Then
TextoNovo = TextoNovo & "ê"
ElseIf Mid(TxtInput.Text, i, 1) = "î" Then
TextoNovo = TextoNovo & "î"
ElseIf Mid(TxtInput.Text, i, 1) = "ô" Then
TextoNovo = TextoNovo & "ô"
ElseIf Mid(TxtInput.Text, i, 1) = "û" Then
TextoNovo = TextoNovo & "û"
ElseIf Mid(TxtInput.Text, i, 1) = "Â" Then
TextoNovo = TextoNovo & "Â"
ElseIf Mid(TxtInput.Text, i, 1) = "Ê" Then
TextoNovo = TextoNovo & "Ê"
ElseIf Mid(TxtInput.Text, i, 1) = "Î" Then
TextoNovo = TextoNovo & "Î"
ElseIf Mid(TxtInput.Text, i, 1) = "Ô" Then
TextoNovo = TextoNovo & "Ô"
ElseIf Mid(TxtInput.Text, i, 1) = "Û" Then
TextoNovo = TextoNovo & "Û"
ElseIf Mid(TxtInput.Text, i, 1) = "à" Then
TextoNovo = TextoNovo & "à"
ElseIf Mid(TxtInput.Text, i, 1) = "è" Then
TextoNovo = TextoNovo & "è"
ElseIf Mid(TxtInput.Text, i, 1) = "ì" Then
TextoNovo = TextoNovo & "ì"
ElseIf Mid(TxtInput.Text, i, 1) = "ò" Then
TextoNovo = TextoNovo & "ò"
ElseIf Mid(TxtInput.Text, i, 1) = "ù" Then
TextoNovo = TextoNovo & "ù"
ElseIf Mid(TxtInput.Text, i, 1) = "À" Then
TextoNovo = TextoNovo & "À"
ElseIf Mid(TxtInput.Text, i, 1) = "È" Then
TextoNovo = TextoNovo & "È"
ElseIf Mid(TxtInput.Text, i, 1) = "Ì" Then
TextoNovo = TextoNovo & "Ì"
ElseIf Mid(TxtInput.Text, i, 1) = "Ò" Then
TextoNovo = TextoNovo & "Ò"
ElseIf Mid(TxtInput.Text, i, 1) = "Ù" Then
TextoNovo = TextoNovo & "Ù"
ElseIf Mid(TxtInput.Text, i, 1) = "ã" Then
TextoNovo = TextoNovo & "ã"
ElseIf Mid(TxtInput.Text, i, 1) = "õ" Then
TextoNovo = TextoNovo & "õ"
ElseIf Mid(TxtInput.Text, i, 1) = "Ã" Then
TextoNovo = TextoNovo & "Ã"
ElseIf Mid(TxtInput.Text, i, 1) = "Õ" Then
TextoNovo = TextoNovo & "Õ"
ElseIf Mid(TxtInput.Text, i, 1) = "ç" Then
TextoNovo = TextoNovo & "ç"
ElseIf Mid(TxtInput.Text, i, 1) = "Ç" Then
TextoNovo = TextoNovo & "Ç"
ElseIf Mid(TxtInput.Text, i, 1) = "ñ" Then
TextoNovo = TextoNovo & "ñ"
ElseIf Mid(TxtInput.Text, i, 1) = "Ñ" Then
TextoNovo = TextoNovo & "Ñ"
ElseIf Mid(TxtInput.Text, i, 1) = """" Then
TextoNovo = TextoNovo & """
ElseIf Mid(TxtInput.Text, i, 1) = "'" Then
TextoNovo = TextoNovo & "'"
Else
TextoNovo = TextoNovo & Mid(TxtInput.Text, i, 1)
End If
Next i

TxtOutput.Text = TextoNovo

CmdTurn.Caption = "Turn in HTML Text"
End Sub
32 changes: 32 additions & 0 deletions HtmlText/PrjHtmlText.vbp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Type=Exe
Form=FrmMain.frm
Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#..\..\..\..\WINDOWS\system32\stdole2.tlb#OLE Automation
Startup="FrmMain"
Command32=""
Name="Project1"
HelpContextID="0"
CompatibleMode="0"
MajorVer=1
MinorVer=0
RevisionVer=0
AutoIncrementVer=0
ServerSupportFiles=0
VersionCompanyName="TiSoftware"
CompilationType=0
OptimizationType=0
FavorPentiumPro(tm)=0
CodeViewDebugInfo=0
NoAliasing=0
BoundsCheck=0
OverflowCheck=0
FlPointCheck=0
FDIVCheck=0
UnroundedFP=0
StartMode=0
Unattended=0
Retained=0
ThreadPerObject=0
MaxNumberOfThreads=1

[MS Transaction Server]
AutoRefresh=1
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<div align="center">

## Turn Plain Text in Html Text


</div>

### Description

Turn Plain Text in Html Text

Ex: &#225; to &amp;acute;

Transforma texto simples em texto html

### More Info



<span> |<span>
--- |---
**Submitted On** |2010-04-30 09:50:02
**By** |[rafael botossi](https://github.com/Planet-Source-Code/PSCIndex/blob/master/ByAuthor/rafael-botossi.md)
**Level** |Beginner
**User Rating** |4.0 (8 globes from 2 users)
**Compatibility** |VB 6\.0
**Category** |[Internet/ HTML](https://github.com/Planet-Source-Code/PSCIndex/blob/master/ByCategory/internet-html__1-34.md)
**World** |[Visual Basic](https://github.com/Planet-Source-Code/PSCIndex/blob/master/ByWorld/visual-basic.md)
**Archive File** |[Turn\_Plain2179974302010\.zip](https://github.com/Planet-Source-Code/rafael-botossi-turn-plain-text-in-html-text__1-73104/archive/master.zip)








0 comments on commit dcfa02f

Please sign in to comment.