Ich würde das Dingens nachprogrammieren, wenns fertig ist. Den Snippet-Server als PHP5 kann ich aber sofort proggen In welcher Archivform willst dus am liebsten haben? Ich favorisiere für Text .tar.bz2 (gute Kompression, besonders wenn mehrere Dateien in einem Archiv sind), kann man das mit .net irgendwie entpacken?
SnippetOrganizer BETA 2
- Beta
Sie verwenden einen veralteten Browser (%browser%) mit Sicherheitsschwachstellen und können nicht alle Funktionen dieser Webseite nutzen.
Hier erfahren Sie, wie einfach Sie Ihren Browser aktualisieren können.
Hier erfahren Sie, wie einfach Sie Ihren Browser aktualisieren können.
Es gibt 40 Antworten in diesem Thema. Der letzte Beitrag () ist von MrLee.
-
-
-
-
Die Idee gefällt mir. Insbesondere mit den Paketquellen. Ich wünsche mir für Windows ja immernoch ein Paketmanagement wie bei Linux. Wäre wesentlich einfacher, per MinGW was zu kompilieren. Einfach alle Build-Dependencys apt-getten
@Mad Andy: Wenn du einen Python-GTK Nachbau programmierst, läuft das dann auch auf Windows mit installiertem Python und GTK+? Mir sagt der Mac-Style nämlich nicht wirklich zu, weil ich ihn nicht grade mag und das StyleSDK recht langsam ist. Aber ansonsten gutes Tool.
Am besten wäre natürlich auch eine Updatemöglichkeit, damit die Autoren ihre Snippets aktualisieren können.
Und ein paar Richtlinien wären auch praktisch - Dass oben Beschreibung und so weiter steht. -
Joar mit Apfel und Andy wurde, sag ich mal ein kleines DEV Team zusamm getrommelt was naja alles doofe beseitigt und naja der Mac Style, ne^^ love so... aba naja kann ja was einbauen zum Style switchen..^^
Achja das StyleSDK kann man beschleunigen in dem man das abrunden ausschaltet und die schatten auch^^
Keine PN's bezüglich VB an mich! Dafür gibt es das Forum!
:Kreis hier. Kreis da.:
-
-
Apfel schrieb:
Ja, dass style, mein Freund.. Nö, eig.: Mein Feind
Oder ihr macht das ganze eher modular, dass ihr eine Klassenbibliothek erstellt, die man in sein eigenes Projekt einbinden kann und sich so sein eigenes Frontend bauen kann.
Wie soll dann eigentlich das php-Backend aussehen? Eher xml oder was anderes? Ich weiß leider nicht genau, wie das bei apt geregelt ist. -
Keine PN's bezüglich VB an mich! Dafür gibt es das Forum!
:Kreis hier. Kreis da.:
-
-
-
Hi!
Aaaaalso, der Python/GTK client funzt natürlich voarussichtlich auch unter Windows und MAC. Deps sind halt Python 2.x (nicht 3k!) und GTK. Ich versuche dann wohl das Design (also Struktur, Positionierung) dem Fensterstil von Mr Lee nachzubauen, jedoch mit GTK/Windoof Theme.
Das PHP-Backend stellt (so weit vorgesehen) nur eine Liste (Links) von Downloads zu Verfügung. Dazu kommt hald noch die Version und ein Beschreibungstext. Die Dateien werden (imho) nicht einzeln runter geladen, sondern in Archiven, wodurch das ganze Struktuierter ist.
Angedach wird das Erstellen mit RTF zu machen, und das ganze dann nach (X)HTML zu konvertieren. -
-
-
-
So ich hab da mal was gefunden bei CodeProject.com...
Der Name von dem das is, steht drin, dieses Modul verwenden ich dann auch im SNippetOrganizer^^
Viel Spass damit
VB.NET-Quellcode
- ''' <summary>
- ''' An object that converts RTF to HTML
- ''' </summary>
- ''' <remarks>
- ''' Completed: 11/02/2006
- ''' Author: George H. Slaterpryce III
- ''' Modifications: none
- ''' *************************************************************************
- ''' *************************************************************************
- ''' License: This code is free to use in private or commercial
- ''' applications, re-distribution of this code is allowed in whole
- ''' or in part so long as this header remains intact. All modifications
- ''' and further development to this code should be indicated by adding the
- ''' name of the author and the modifications/improvements under the
- ''' "Modifications:" section.
- ''' Modification Listings should be in the format of.
- ''' (#) Description of modification (Name, Date)
- ''' *************************************************************************
- ''' *************************************************************************
- ''' </remarks>
- Public Class RTFtoHTML
- #Region "Private Members"
- ' A RichTextBox control to use to help with parsing.
- Private _rtfSource As New System.Windows.Forms.RichTextBox
- #End Region
- #Region "Read/Write Properties"
- ''' <summary>
- ''' Returns/Sets The RTF formatted text to parse
- ''' </summary>
- Public Property rtf() As String
- Get
- Return _rtfSource.Rtf
- End Get
- Set(ByVal value As String)
- _rtfSource.Rtf = value
- End Set
- End Property
- #End Region
- #Region "ReadOnly Properties"
- ''' <summary>
- ''' Returns the HTML code for the provided RTF
- ''' </summary>
- Public ReadOnly Property html() As String
- Get
- Return GetHtml()
- End Get
- End Property
- #End Region
- #Region "Private Functions"
- ''' <summary>
- ''' Returns an HTML Formated Color string for the style from a system.drawing.color
- ''' </summary>
- ''' <param name="clr">The color you wish to convert</param>
- Private Function HtmlColorFromColor(ByRef clr As System.Drawing.Color) As String
- Dim strReturn As String = ""
- If clr.IsNamedColor Then
- strReturn = clr.Name.ToLower
- Else
- strReturn = clr.Name
- If strReturn.Length > 6 Then
- strReturn = strReturn.Substring(strReturn.Length - 6, 6)
- End If
- strReturn = "#" & strReturn
- End If
- Return strReturn
- End Function
- ''' <summary>
- ''' Provides the font style per given font
- ''' </summary>
- ''' <param name="fnt">The font you wish to convert</param>
- Private Function HtmlFontStyleFromFont(ByRef fnt As System.Drawing.Font) As String
- Dim strReturn As String = ""
- 'style
- If fnt.Italic Then
- strReturn &= "italic "
- Else
- strReturn &= "normal "
- End If
- 'variant
- strReturn &= "normal "
- 'weight
- If fnt.Bold Then
- strReturn &= "bold "
- Else
- strReturn &= "normal "
- End If
- 'size
- strReturn &= fnt.SizeInPoints & "pt/normal "
- 'family
- strReturn &= fnt.FontFamily.Name
- Return strReturn
- End Function
- ''' <summary>
- ''' Parses the given rich text and returns the html.
- ''' </summary>
- Private Function GetHtml() As String
- Dim strReturn As String = "<div>"
- Dim clrForeColor As System.Drawing.Color = Color.Black
- Dim clrBackColor As System.Drawing.Color = Color.Black
- Dim fntCurrentFont As System.Drawing.Font = _rtfSource.Font
- Dim altCurrent As System.Windows.Forms.HorizontalAlignment = HorizontalAlignment.Left
- Dim intPos As Integer = 0
- For intPos = 0 To _rtfSource.Text.Length - 1
- _rtfSource.Select(intPos, 1)
- 'Forecolor
- If intPos = 0 Then
- strReturn &= "<span style=""color:" & HtmlColorFromColor(_rtfSource.SelectionColor) & """>"
- clrForeColor = _rtfSource.SelectionColor
- Else
- If _rtfSource.SelectionColor <> clrForeColor Then
- strReturn &= "</span>"
- strReturn &= "<span style=""color:" & HtmlColorFromColor(_rtfSource.SelectionColor) & """>"
- clrForeColor = _rtfSource.SelectionColor
- End If
- End If
- 'Background color
- If intPos = 0 Then
- strReturn &= "<span style=""background-color:" & HtmlColorFromColor(_rtfSource.SelectionBackColor) & """>"
- clrBackColor = _rtfSource.SelectionBackColor
- Else
- If _rtfSource.SelectionBackColor <> clrBackColor Then
- strReturn &= "</span>"
- strReturn &= "<span style=""background-color:" & HtmlColorFromColor(_rtfSource.SelectionBackColor) & """>"
- clrBackColor = _rtfSource.SelectionBackColor
- End If
- End If
- 'Font
- If intPos = 0 Then
- strReturn &= "<span style=""font:" & HtmlFontStyleFromFont(_rtfSource.SelectionFont) & """>"
- fntCurrentFont = _rtfSource.SelectionFont
- Else
- If _rtfSource.SelectionFont.GetHashCode <> fntCurrentFont.GetHashCode Then
- strReturn &= "</span>"
- strReturn &= "<span style=""font:" & HtmlFontStyleFromFont(_rtfSource.SelectionFont) & """>"
- fntCurrentFont = _rtfSource.SelectionFont
- End If
- End If
- 'Alignment
- If intPos = 0 Then
- strReturn &= "<p style=""text-align:" & _rtfSource.SelectionAlignment.ToString & """>"
- altCurrent = _rtfSource.SelectionAlignment
- Else
- If _rtfSource.SelectionAlignment <> altCurrent Then
- strReturn &= "</p>"
- strReturn &= "<p style=""text-align:" & _rtfSource.SelectionAlignment.ToString & """>"
- altCurrent = _rtfSource.SelectionAlignment
- End If
- End If
- strReturn &= _rtfSource.Text.Substring(intPos, 1)
- Next
- 'close all the spans
- strReturn &= "</span>"
- strReturn &= "</span>"
- strReturn &= "</span>"
- strReturn &= "</p>"
- strReturn &= "</div>"
- strReturn = strReturn.Replace(Convert.ToChar(10), "<br />")
- Return strReturn
- End Function
- #End Region
- End Class
Keine PN's bezüglich VB an mich! Dafür gibt es das Forum!
:Kreis hier. Kreis da.:
-
-
-
Du hast beim Link oben den Punkt vor der Endung vergessen....wintoolz.de
- wintoolz.KeyLocker - Programm zum sicheren Verwalten von Passwörten
- wintoolz.CodeGallery - Datenbank für Codebeispiele veschiedener Programmiersprachen
- wintoolz.Haushaltsbuch - Dient zum Auflisten der Aktivitäten ihrer Bankkonten
Benutze auch du Ecosia - wintoolz.KeyLocker - Programm zum sicheren Verwalten von Passwörten
-
Wirklich cooles Design...
Aber bei mir funktioniert das Programm nicht...
Wenn ich die Exe-Datei öffne, kann ich das auf Ausführen oder Extrahieren klicken, wenn ich auf Extrahieren klicke,
kommt dass der Ordner schon existiere. Die Dateien werden aber trotzdem angezeigt.
Wenn ich dann die exe öffne, kommt gleich beim Start eine Fehlermeldung, und eine Kategorie kann ich auch nicht erstellen, weil der Button nicht funktioniert... -